{"cells":[{"cell_type":"markdown","source":["# 浪子之心科技\n","## 此代码仅为演示循环驱动同屏双人数字人，外加后期超分处理的框架。代码是用wav2lip循环驱动同屏双人数字人，训练高清模型，做流式处理，加强硬件，并且不做后期超分，即可用于双人数字人实时直播。也可以再此框架的基础上，将wav2lip替换成其他的数字人驱动项目。其中视频1-6为提前录制的双人不说话视频，音频1-6为提前准备的说话音频。\n","### 一、提前将录制好的双人视频素材和音频分别上传temp_video和input_audio。\n","### 二、此双人数字人素材录制非常关键，音频和视频切割也很关键。\n","### 三、视频处理速度和GPU性能直接相关，如果需要直播的话，需要进行流式处理，并且使用高性能GPU。\n","### 四、CodeFormer超分速度较慢，对数字人视频要求不高的可以不做超分，或者换成GFPGAN进行超分。\n","### 五、代码中没有使用变量，你需要自己写变量。\n","\n"],"metadata":{"id":"ncjUdsIYOoXi"}},{"cell_type":"code","execution_count":1,"metadata":{"id":"Qgo-oaI3JU2u","colab":{"base_uri":"https://localhost:8080/"},"outputId":"c35d857a-4b2e-4558-bcbd-c6321980abe0","executionInfo":{"status":"ok","timestamp":1691719208730,"user_tz":-480,"elapsed":335349,"user":{"displayName":"ke liao","userId":"04877487214712182993"}}},"outputs":[{"output_type":"stream","name":"stdout","text":["\n","Done\n"]}],"source":["#@title 一、下载Double_Talker\n","#@title\n","!rm -rf /content/sample_data\n","%cd /content/\n","!git clone https://github.com/langzizhixin/Double_Talker\n","%cd /content/Double_Talker\n","# 下载Wav2Lip，并安装环境\n","!rm -rf Wav2Lip\n","!git clone https://github.com/zabique/Wav2Lip\n","%cd /content/Double_Talker/Wav2Lip\n","#download the pretrained model\n","!wget 'https://iiitaphyd-my.sharepoint.com/personal/radrabha_m_research_iiit_ac_in/_layouts/15/download.aspx?share=EdjI7bZlgApMqsVoEUUXpLsBxqXbn5z8VTmoxp55YNDcIA' -O '/content/Double_Talker/Wav2Lip/checkpoints/wav2lip_gan.pth'\n","a = !pip install https://raw.githubusercontent.com/AwaleSajil/ghc/master/ghc-1.0-py3-none-any.whl\n","# !pip uninstall tensorflow tensorflow-gpu\n","!cd Wav2Lip && pip install -r requirements.txt\n","#download pretrained model for face detection\n","!wget \"https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth\" -O \"/content/Double_Talker/Wav2Lip/face_detection/detection/sfd/s3fd.pth\"\n","!pip install -q youtube-dl\n","!pip install ffmpeg-python\n","!pip install librosa==0.9.1\n","!pip install basicsr\n","!pip install gradio\n","#this code for recording audio\n","\"\"\"\n","To write this piece of code I took inspiration/code from a lot of places.\n","It was late night, so I'm not sure how much I created or just copied o.O\n","Here are some of the possible references:\n","https://blog.addpipe.com/recording-audio-in-the-browser-using-pure-html5-and-minimal-javascript/\n","https://stackoverflow.com/a/18650249\n","https://hacks.mozilla.org/2014/06/easy-audio-capture-with-the-mediarecorder-api/\n","https://air.ghost.io/recording-to-an-audio-file-using-html5-and-js/\n","https://stackoverflow.com/a/49019356\n","\"\"\"\n","from IPython.display import HTML, Audio\n","from google.colab.output import eval_js\n","from base64 import b64decode\n","import numpy as np\n","from scipy.io.wavfile import read as wav_read\n","import io\n","import ffmpeg\n","from IPython.display import clear_output\n","clear_output()\n","print(\"\\nDone\")"]},{"cell_type":"code","source":["#@title 二、下载CodeFormer的源码权重并安装依赖\n","# 下载CodeFormer的源码\n","%cd /content/Double_Talker\n","!rm -rf CodeFormer\n","!git clone https://github.com/sczhou/CodeFormer.git\n","%cd /content/Double_Talker/CodeFormer\n","# 下载下载CodeFormer的权重\n","!python scripts/download_pretrained_models.py facelib\n","!python scripts/download_pretrained_models.py CodeFormer\n","# 安装CodeFormer的依赖\n","%cd /content/Double_Talker/CodeFormer\n","!python basicsr/setup.py develop"],"metadata":{"id":"rpa5nWB4wdr7","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1691719321219,"user_tz":-480,"elapsed":19267,"user":{"displayName":"ke liao","userId":"04877487214712182993"}},"outputId":"ae3a4f21-c705-45c7-92cd-466583a21bac"},"execution_count":2,"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker\n","Cloning into 'CodeFormer'...\n","remote: Enumerating objects: 594, done.\u001b[K\n","remote: Counting objects: 100% (245/245), done.\u001b[K\n","remote: Compressing objects: 100% (97/97), done.\u001b[K\n","remote: Total 594 (delta 175), reused 170 (delta 148), pack-reused 349\u001b[K\n","Receiving objects: 100% (594/594), 17.31 MiB | 36.03 MiB/s, done.\n","Resolving deltas: 100% (286/286), done.\n","/content/Double_Talker/CodeFormer\n","/usr/local/lib/python3.10/dist-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.\n","  warnings.warn(\n","Downloading: \"https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/detection_Resnet50_Final.pth\" to /content/Double_Talker/CodeFormer/weights/facelib/detection_Resnet50_Final.pth\n","\n","100% 104M/104M [00:00<00:00, 151MB/s]\n","Downloading: \"https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/parsing_parsenet.pth\" to /content/Double_Talker/CodeFormer/weights/facelib/parsing_parsenet.pth\n","\n","100% 81.4M/81.4M [00:00<00:00, 189MB/s]\n","/usr/local/lib/python3.10/dist-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.\n","  warnings.warn(\n","Downloading: \"https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/codeformer.pth\" to /content/Double_Talker/CodeFormer/weights/CodeFormer/codeformer.pth\n","\n","100% 359M/359M [00:01<00:00, 209MB/s]\n","/content/Double_Talker/CodeFormer\n","/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.\n","!!\n","\n","        ********************************************************************************\n","        Requirements should be satisfied by a PEP 517 installer.\n","        If you are using pip, you can try `pip install --use-pep517`.\n","        ********************************************************************************\n","\n","!!\n","  dist.fetch_build_eggs(dist.setup_requires)\n","running develop\n","/usr/local/lib/python3.10/dist-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.\n","!!\n","\n","        ********************************************************************************\n","        Please avoid running ``setup.py`` and ``easy_install``.\n","        Instead, use pypa/build, pypa/installer, pypa/build or\n","        other standards-based tools.\n","\n","        See https://github.com/pypa/setuptools/issues/917 for details.\n","        ********************************************************************************\n","\n","!!\n","  easy_install.initialize_options(self)\n","/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.\n","!!\n","\n","        ********************************************************************************\n","        Please avoid running ``setup.py`` directly.\n","        Instead, use pypa/build, pypa/installer, pypa/build or\n","        other standards-based tools.\n","\n","        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.\n","        ********************************************************************************\n","\n","!!\n","  self.initialize_options()\n","running egg_info\n","creating basicsr.egg-info\n","writing basicsr.egg-info/PKG-INFO\n","writing dependency_links to basicsr.egg-info/dependency_links.txt\n","writing requirements to basicsr.egg-info/requires.txt\n","writing top-level names to basicsr.egg-info/top_level.txt\n","writing manifest file 'basicsr.egg-info/SOURCES.txt'\n","reading manifest file 'basicsr.egg-info/SOURCES.txt'\n","adding license file 'LICENSE'\n","writing manifest file 'basicsr.egg-info/SOURCES.txt'\n","/usr/local/lib/python3.10/dist-packages/torch/utils/cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.\n","  warnings.warn(msg.format('we could not find ninja.'))\n","running build_ext\n","Creating /usr/local/lib/python3.10/dist-packages/basicsr.egg-link (link to .)\n","Adding basicsr 1.3.2 to easy-install.pth file\n","\n","Installed /content/Double_Talker/CodeFormer\n","Processing dependencies for basicsr==1.3.2\n","Searching for lpips\n","Reading https://pypi.org/simple/lpips/\n","Downloading https://files.pythonhosted.org/packages/9b/13/1df50c7925d9d2746702719f40e864f51ed66f307b20ad32392f1ad2bb87/lpips-0.1.4-py3-none-any.whl#sha256=fd537af5828b69d2e6ffc0a397bd506dbc28ca183543617690844c08e102ec5e\n","Best match: lpips 0.1.4\n","Processing lpips-0.1.4-py3-none-any.whl\n","Installing lpips-0.1.4-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages\n","Adding lpips 0.1.4 to easy-install.pth file\n","\n","Installed /usr/local/lib/python3.10/dist-packages/lpips-0.1.4-py3.10.egg\n","Searching for gdown==4.6.6\n","Best match: gdown 4.6.6\n","Adding gdown 4.6.6 to easy-install.pth file\n","Installing gdown script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for yapf==0.40.1\n","Best match: yapf 0.40.1\n","Adding yapf 0.40.1 to easy-install.pth file\n","Installing yapf script to /usr/local/bin\n","Installing yapf-diff script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for tqdm==4.65.0\n","Best match: tqdm 4.65.0\n","Adding tqdm 4.65.0 to easy-install.pth file\n","Installing tqdm script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for torchvision==0.15.2+cu118\n","Best match: torchvision 0.15.2+cu118\n","Adding torchvision 0.15.2+cu118 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for torch==2.0.1+cu118\n","Best match: torch 2.0.1+cu118\n","Adding torch 2.0.1+cu118 to easy-install.pth file\n","Installing convert-caffe2-to-onnx script to /usr/local/bin\n","Installing convert-onnx-to-caffe2 script to /usr/local/bin\n","Installing torchrun script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for tb-nightly==2.15.0a20230810\n","Best match: tb-nightly 2.15.0a20230810\n","Adding tb-nightly 2.15.0a20230810 to easy-install.pth file\n","Installing tensorboard script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for scipy==1.10.1\n","Best match: scipy 1.10.1\n","Adding scipy 1.10.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for scikit-image==0.19.3\n","Best match: scikit-image 0.19.3\n","Adding scikit-image 0.19.3 to easy-install.pth file\n","Installing skivi script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for requests==2.31.0\n","Best match: requests 2.31.0\n","Adding requests 2.31.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for PyYAML==6.0.1\n","Best match: PyYAML 6.0.1\n","Adding PyYAML 6.0.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for Pillow==9.4.0\n","Best match: Pillow 9.4.0\n","Adding Pillow 9.4.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for opencv-python==4.7.0.72\n","Best match: opencv-python 4.7.0.72\n","Adding opencv-python 4.7.0.72 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for numpy==1.23.5\n","Best match: numpy 1.23.5\n","Adding numpy 1.23.5 to easy-install.pth file\n","Installing f2py script to /usr/local/bin\n","Installing f2py3 script to /usr/local/bin\n","Installing f2py3.10 script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for lmdb==1.4.1\n","Best match: lmdb 1.4.1\n","Adding lmdb 1.4.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for future==0.18.3\n","Best match: future 0.18.3\n","Adding future 0.18.3 to easy-install.pth file\n","Installing futurize script to /usr/local/bin\n","Installing pasteurize script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for addict==2.4.0\n","Best match: addict 2.4.0\n","Adding addict 2.4.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for beautifulsoup4==4.11.2\n","Best match: beautifulsoup4 4.11.2\n","Adding beautifulsoup4 4.11.2 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for six==1.16.0\n","Best match: six 1.16.0\n","Adding six 1.16.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for filelock==3.12.2\n","Best match: filelock 3.12.2\n","Adding filelock 3.12.2 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for tomli==2.0.1\n","Best match: tomli 2.0.1\n","Adding tomli 2.0.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for platformdirs==3.10.0\n","Best match: platformdirs 3.10.0\n","Adding platformdirs 3.10.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for importlib-metadata==6.8.0\n","Best match: importlib-metadata 6.8.0\n","Adding importlib-metadata 6.8.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for triton==2.0.0\n","Best match: triton 2.0.0\n","Adding triton 2.0.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for Jinja2==3.1.2\n","Best match: Jinja2 3.1.2\n","Adding Jinja2 3.1.2 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for networkx==3.1\n","Best match: networkx 3.1\n","Adding networkx 3.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for sympy==1.11.1\n","Best match: sympy 1.11.1\n","Adding sympy 1.11.1 to easy-install.pth file\n","Installing isympy script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for typing-extensions==4.7.1\n","Best match: typing-extensions 4.7.1\n","Adding typing-extensions 4.7.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for wheel==0.41.0\n","Best match: wheel 0.41.0\n","Adding wheel 0.41.0 to easy-install.pth file\n","Installing wheel script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for Werkzeug==2.3.6\n","Best match: Werkzeug 2.3.6\n","Adding Werkzeug 2.3.6 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for tensorboard-data-server==0.7.1\n","Best match: tensorboard-data-server 0.7.1\n","Adding tensorboard-data-server 0.7.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for setuptools==67.7.2\n","Best match: setuptools 67.7.2\n","Adding setuptools 67.7.2 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for protobuf==3.20.3\n","Best match: protobuf 3.20.3\n","Adding protobuf 3.20.3 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for Markdown==3.4.4\n","Best match: Markdown 3.4.4\n","Adding Markdown 3.4.4 to easy-install.pth file\n","Installing markdown_py script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for google-auth-oauthlib==1.0.0\n","Best match: google-auth-oauthlib 1.0.0\n","Adding google-auth-oauthlib 1.0.0 to easy-install.pth file\n","Installing google-oauthlib-tool script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for google-auth==2.17.3\n","Best match: google-auth 2.17.3\n","Adding google-auth 2.17.3 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for grpcio==1.56.2\n","Best match: grpcio 1.56.2\n","Adding grpcio 1.56.2 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for absl-py==1.4.0\n","Best match: absl-py 1.4.0\n","Adding absl-py 1.4.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for packaging==23.1\n","Best match: packaging 23.1\n","Adding packaging 23.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for PyWavelets==1.4.1\n","Best match: PyWavelets 1.4.1\n","Adding PyWavelets 1.4.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for tifffile==2023.7.18\n","Best match: tifffile 2023.7.18\n","Adding tifffile 2023.7.18 to easy-install.pth file\n","Installing lsm2bin script to /usr/local/bin\n","Installing tiff2fsspec script to /usr/local/bin\n","Installing tiffcomment script to /usr/local/bin\n","Installing tifffile script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for imageio==2.25.1\n","Best match: imageio 2.25.1\n","Adding imageio 2.25.1 to easy-install.pth file\n","Installing imageio_download_bin script to /usr/local/bin\n","Installing imageio_remove_bin script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for certifi==2023.7.22\n","Best match: certifi 2023.7.22\n","Adding certifi 2023.7.22 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for urllib3==1.26.16\n","Best match: urllib3 1.26.16\n","Adding urllib3 1.26.16 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for idna==3.4\n","Best match: idna 3.4\n","Adding idna 3.4 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for charset-normalizer==3.2.0\n","Best match: charset-normalizer 3.2.0\n","Adding charset-normalizer 3.2.0 to easy-install.pth file\n","Installing normalizer script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for soupsieve==2.4.1\n","Best match: soupsieve 2.4.1\n","Adding soupsieve 2.4.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for PySocks==1.7.1\n","Best match: PySocks 1.7.1\n","Adding PySocks 1.7.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for zipp==3.16.2\n","Best match: zipp 3.16.2\n","Adding zipp 3.16.2 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for lit==16.0.6\n","Best match: lit 16.0.6\n","Adding lit 16.0.6 to easy-install.pth file\n","Installing lit script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for cmake==3.25.2\n","Best match: cmake 3.25.2\n","Adding cmake 3.25.2 to easy-install.pth file\n","Installing cmake script to /usr/local/bin\n","Installing cpack script to /usr/local/bin\n","Installing ctest script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for MarkupSafe==2.1.3\n","Best match: MarkupSafe 2.1.3\n","Adding MarkupSafe 2.1.3 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for mpmath==1.3.0\n","Best match: mpmath 1.3.0\n","Adding mpmath 1.3.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for requests-oauthlib==1.3.1\n","Best match: requests-oauthlib 1.3.1\n","Adding requests-oauthlib 1.3.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for rsa==4.9\n","Best match: rsa 4.9\n","Adding rsa 4.9 to easy-install.pth file\n","Installing pyrsa-decrypt script to /usr/local/bin\n","Installing pyrsa-encrypt script to /usr/local/bin\n","Installing pyrsa-keygen script to /usr/local/bin\n","Installing pyrsa-priv2pub script to /usr/local/bin\n","Installing pyrsa-sign script to /usr/local/bin\n","Installing pyrsa-verify script to /usr/local/bin\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for pyasn1-modules==0.3.0\n","Best match: pyasn1-modules 0.3.0\n","Adding pyasn1-modules 0.3.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for cachetools==5.3.1\n","Best match: cachetools 5.3.1\n","Adding cachetools 5.3.1 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for oauthlib==3.2.2\n","Best match: oauthlib 3.2.2\n","Adding oauthlib 3.2.2 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Searching for pyasn1==0.5.0\n","Best match: pyasn1 0.5.0\n","Adding pyasn1 0.5.0 to easy-install.pth file\n","\n","Using /usr/local/lib/python3.10/dist-packages\n","Finished processing dependencies for basicsr==1.3.2\n"]}]},{"cell_type":"code","execution_count":3,"metadata":{"id":"vsphzJawLF-f","colab":{"base_uri":"https://localhost:8080/","height":58},"executionInfo":{"status":"ok","timestamp":1691719343378,"user_tz":-480,"elapsed":9397,"user":{"displayName":"ke liao","userId":"04877487214712182993"}},"outputId":"2538d5ee-6547-485e-bef5-f3959a56c8dc"},"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker/temp_video\n"]},{"output_type":"display_data","data":{"text/plain":["<IPython.core.display.HTML object>"],"text/html":["\n","     <input type=\"file\" id=\"files-61d723fa-dd36-48d9-9a5e-0ae3a0c2811c\" name=\"files[]\" multiple disabled\n","        style=\"border:none\" />\n","     <output id=\"result-61d723fa-dd36-48d9-9a5e-0ae3a0c2811c\">\n","      Upload widget is only available when the cell has been executed in the\n","      current browser session. Please rerun this cell to enable.\n","      </output>\n","      <script>// Copyright 2017 Google LLC\n","//\n","// Licensed under the Apache License, Version 2.0 (the \"License\");\n","// you may not use this file except in compliance with the License.\n","// You may obtain a copy of the License at\n","//\n","//      http://www.apache.org/licenses/LICENSE-2.0\n","//\n","// Unless required by applicable law or agreed to in writing, software\n","// distributed under the License is distributed on an \"AS IS\" BASIS,\n","// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n","// See the License for the specific language governing permissions and\n","// limitations under the License.\n","\n","/**\n"," * @fileoverview Helpers for google.colab Python module.\n"," */\n","(function(scope) {\n","function span(text, styleAttributes = {}) {\n","  const element = document.createElement('span');\n","  element.textContent = text;\n","  for (const key of Object.keys(styleAttributes)) {\n","    element.style[key] = styleAttributes[key];\n","  }\n","  return element;\n","}\n","\n","// Max number of bytes which will be uploaded at a time.\n","const MAX_PAYLOAD_SIZE = 100 * 1024;\n","\n","function _uploadFiles(inputId, outputId) {\n","  const steps = uploadFilesStep(inputId, outputId);\n","  const outputElement = document.getElementById(outputId);\n","  // Cache steps on the outputElement to make it available for the next call\n","  // to uploadFilesContinue from Python.\n","  outputElement.steps = steps;\n","\n","  return _uploadFilesContinue(outputId);\n","}\n","\n","// This is roughly an async generator (not supported in the browser yet),\n","// where there are multiple asynchronous steps and the Python side is going\n","// to poll for completion of each step.\n","// This uses a Promise to block the python side on completion of each step,\n","// then passes the result of the previous step as the input to the next step.\n","function _uploadFilesContinue(outputId) {\n","  const outputElement = document.getElementById(outputId);\n","  const steps = outputElement.steps;\n","\n","  const next = steps.next(outputElement.lastPromiseValue);\n","  return Promise.resolve(next.value.promise).then((value) => {\n","    // Cache the last promise value to make it available to the next\n","    // step of the generator.\n","    outputElement.lastPromiseValue = value;\n","    return next.value.response;\n","  });\n","}\n","\n","/**\n"," * Generator function which is called between each async step of the upload\n"," * process.\n"," * @param {string} inputId Element ID of the input file picker element.\n"," * @param {string} outputId Element ID of the output display.\n"," * @return {!Iterable<!Object>} Iterable of next steps.\n"," */\n","function* uploadFilesStep(inputId, outputId) {\n","  const inputElement = document.getElementById(inputId);\n","  inputElement.disabled = false;\n","\n","  const outputElement = document.getElementById(outputId);\n","  outputElement.innerHTML = '';\n","\n","  const pickedPromise = new Promise((resolve) => {\n","    inputElement.addEventListener('change', (e) => {\n","      resolve(e.target.files);\n","    });\n","  });\n","\n","  const cancel = document.createElement('button');\n","  inputElement.parentElement.appendChild(cancel);\n","  cancel.textContent = 'Cancel upload';\n","  const cancelPromise = new Promise((resolve) => {\n","    cancel.onclick = () => {\n","      resolve(null);\n","    };\n","  });\n","\n","  // Wait for the user to pick the files.\n","  const files = yield {\n","    promise: Promise.race([pickedPromise, cancelPromise]),\n","    response: {\n","      action: 'starting',\n","    }\n","  };\n","\n","  cancel.remove();\n","\n","  // Disable the input element since further picks are not allowed.\n","  inputElement.disabled = true;\n","\n","  if (!files) {\n","    return {\n","      response: {\n","        action: 'complete',\n","      }\n","    };\n","  }\n","\n","  for (const file of files) {\n","    const li = document.createElement('li');\n","    li.append(span(file.name, {fontWeight: 'bold'}));\n","    li.append(span(\n","        `(${file.type || 'n/a'}) - ${file.size} bytes, ` +\n","        `last modified: ${\n","            file.lastModifiedDate ? file.lastModifiedDate.toLocaleDateString() :\n","                                    'n/a'} - `));\n","    const percent = span('0% done');\n","    li.appendChild(percent);\n","\n","    outputElement.appendChild(li);\n","\n","    const fileDataPromise = new Promise((resolve) => {\n","      const reader = new FileReader();\n","      reader.onload = (e) => {\n","        resolve(e.target.result);\n","      };\n","      reader.readAsArrayBuffer(file);\n","    });\n","    // Wait for the data to be ready.\n","    let fileData = yield {\n","      promise: fileDataPromise,\n","      response: {\n","        action: 'continue',\n","      }\n","    };\n","\n","    // Use a chunked sending to avoid message size limits. See b/62115660.\n","    let position = 0;\n","    do {\n","      const length = Math.min(fileData.byteLength - position, MAX_PAYLOAD_SIZE);\n","      const chunk = new Uint8Array(fileData, position, length);\n","      position += length;\n","\n","      const base64 = btoa(String.fromCharCode.apply(null, chunk));\n","      yield {\n","        response: {\n","          action: 'append',\n","          file: file.name,\n","          data: base64,\n","        },\n","      };\n","\n","      let percentDone = fileData.byteLength === 0 ?\n","          100 :\n","          Math.round((position / fileData.byteLength) * 100);\n","      percent.textContent = `${percentDone}% done`;\n","\n","    } while (position < fileData.byteLength);\n","  }\n","\n","  // All done.\n","  yield {\n","    response: {\n","      action: 'complete',\n","    }\n","  };\n","}\n","\n","scope.google = scope.google || {};\n","scope.google.colab = scope.google.colab || {};\n","scope.google.colab._files = {\n","  _uploadFiles,\n","  _uploadFilesContinue,\n","};\n","})(self);\n","</script> "]},"metadata":{}}],"source":["#@title 三、上传视频\n","%cd /content/Double_Talker/temp_video\n","!rm README.md\n","from google.colab import files\n","from io import BytesIO\n","uploaded = files.upload()\n","# 可以上传自己的视频，也可以用我的视频进行演示，点击取消上传即可"]},{"cell_type":"code","source":["#@title 四、上传音频\n","%cd /content/Double_Talker/input_audio\n","!rm README.md\n","from google.colab import files\n","from io import BytesIO\n","uploaded = files.upload()\n","# 可以上传自己的音频，也可以用我的音频进行演示，点击取消上传即可"],"metadata":{"id":"CJg3j-TybqJ2","colab":{"base_uri":"https://localhost:8080/","height":58},"executionInfo":{"status":"ok","timestamp":1691719357648,"user_tz":-480,"elapsed":3606,"user":{"displayName":"ke liao","userId":"04877487214712182993"}},"outputId":"f570a28c-af84-43ce-d404-02495be81f21"},"execution_count":4,"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker/input_audio\n"]},{"output_type":"display_data","data":{"text/plain":["<IPython.core.display.HTML object>"],"text/html":["\n","     <input type=\"file\" id=\"files-75d490cc-de87-41d7-82aa-ebe28daae45d\" name=\"files[]\" multiple disabled\n","        style=\"border:none\" />\n","     <output id=\"result-75d490cc-de87-41d7-82aa-ebe28daae45d\">\n","      Upload widget is only available when the cell has been executed in the\n","      current browser session. Please rerun this cell to enable.\n","      </output>\n","      <script>// Copyright 2017 Google LLC\n","//\n","// Licensed under the Apache License, Version 2.0 (the \"License\");\n","// you may not use this file except in compliance with the License.\n","// You may obtain a copy of the License at\n","//\n","//      http://www.apache.org/licenses/LICENSE-2.0\n","//\n","// Unless required by applicable law or agreed to in writing, software\n","// distributed under the License is distributed on an \"AS IS\" BASIS,\n","// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n","// See the License for the specific language governing permissions and\n","// limitations under the License.\n","\n","/**\n"," * @fileoverview Helpers for google.colab Python module.\n"," */\n","(function(scope) {\n","function span(text, styleAttributes = {}) {\n","  const element = document.createElement('span');\n","  element.textContent = text;\n","  for (const key of Object.keys(styleAttributes)) {\n","    element.style[key] = styleAttributes[key];\n","  }\n","  return element;\n","}\n","\n","// Max number of bytes which will be uploaded at a time.\n","const MAX_PAYLOAD_SIZE = 100 * 1024;\n","\n","function _uploadFiles(inputId, outputId) {\n","  const steps = uploadFilesStep(inputId, outputId);\n","  const outputElement = document.getElementById(outputId);\n","  // Cache steps on the outputElement to make it available for the next call\n","  // to uploadFilesContinue from Python.\n","  outputElement.steps = steps;\n","\n","  return _uploadFilesContinue(outputId);\n","}\n","\n","// This is roughly an async generator (not supported in the browser yet),\n","// where there are multiple asynchronous steps and the Python side is going\n","// to poll for completion of each step.\n","// This uses a Promise to block the python side on completion of each step,\n","// then passes the result of the previous step as the input to the next step.\n","function _uploadFilesContinue(outputId) {\n","  const outputElement = document.getElementById(outputId);\n","  const steps = outputElement.steps;\n","\n","  const next = steps.next(outputElement.lastPromiseValue);\n","  return Promise.resolve(next.value.promise).then((value) => {\n","    // Cache the last promise value to make it available to the next\n","    // step of the generator.\n","    outputElement.lastPromiseValue = value;\n","    return next.value.response;\n","  });\n","}\n","\n","/**\n"," * Generator function which is called between each async step of the upload\n"," * process.\n"," * @param {string} inputId Element ID of the input file picker element.\n"," * @param {string} outputId Element ID of the output display.\n"," * @return {!Iterable<!Object>} Iterable of next steps.\n"," */\n","function* uploadFilesStep(inputId, outputId) {\n","  const inputElement = document.getElementById(inputId);\n","  inputElement.disabled = false;\n","\n","  const outputElement = document.getElementById(outputId);\n","  outputElement.innerHTML = '';\n","\n","  const pickedPromise = new Promise((resolve) => {\n","    inputElement.addEventListener('change', (e) => {\n","      resolve(e.target.files);\n","    });\n","  });\n","\n","  const cancel = document.createElement('button');\n","  inputElement.parentElement.appendChild(cancel);\n","  cancel.textContent = 'Cancel upload';\n","  const cancelPromise = new Promise((resolve) => {\n","    cancel.onclick = () => {\n","      resolve(null);\n","    };\n","  });\n","\n","  // Wait for the user to pick the files.\n","  const files = yield {\n","    promise: Promise.race([pickedPromise, cancelPromise]),\n","    response: {\n","      action: 'starting',\n","    }\n","  };\n","\n","  cancel.remove();\n","\n","  // Disable the input element since further picks are not allowed.\n","  inputElement.disabled = true;\n","\n","  if (!files) {\n","    return {\n","      response: {\n","        action: 'complete',\n","      }\n","    };\n","  }\n","\n","  for (const file of files) {\n","    const li = document.createElement('li');\n","    li.append(span(file.name, {fontWeight: 'bold'}));\n","    li.append(span(\n","        `(${file.type || 'n/a'}) - ${file.size} bytes, ` +\n","        `last modified: ${\n","            file.lastModifiedDate ? file.lastModifiedDate.toLocaleDateString() :\n","                                    'n/a'} - `));\n","    const percent = span('0% done');\n","    li.appendChild(percent);\n","\n","    outputElement.appendChild(li);\n","\n","    const fileDataPromise = new Promise((resolve) => {\n","      const reader = new FileReader();\n","      reader.onload = (e) => {\n","        resolve(e.target.result);\n","      };\n","      reader.readAsArrayBuffer(file);\n","    });\n","    // Wait for the data to be ready.\n","    let fileData = yield {\n","      promise: fileDataPromise,\n","      response: {\n","        action: 'continue',\n","      }\n","    };\n","\n","    // Use a chunked sending to avoid message size limits. See b/62115660.\n","    let position = 0;\n","    do {\n","      const length = Math.min(fileData.byteLength - position, MAX_PAYLOAD_SIZE);\n","      const chunk = new Uint8Array(fileData, position, length);\n","      position += length;\n","\n","      const base64 = btoa(String.fromCharCode.apply(null, chunk));\n","      yield {\n","        response: {\n","          action: 'append',\n","          file: file.name,\n","          data: base64,\n","        },\n","      };\n","\n","      let percentDone = fileData.byteLength === 0 ?\n","          100 :\n","          Math.round((position / fileData.byteLength) * 100);\n","      percent.textContent = `${percentDone}% done`;\n","\n","    } while (position < fileData.byteLength);\n","  }\n","\n","  // All done.\n","  yield {\n","    response: {\n","      action: 'complete',\n","    }\n","  };\n","}\n","\n","scope.google = scope.google || {};\n","scope.google.colab = scope.google.colab || {};\n","scope.google.colab._files = {\n","  _uploadFiles,\n","  _uploadFilesContinue,\n","};\n","})(self);\n","</script> "]},"metadata":{}}]},{"cell_type":"code","source":["#@title 五、双人数字人视频预处理\n","%cd /content/Double_Talker\n","!mkdir input_video\n","!mkdir ls_video\n","!mkdir output\n","!python video_preprocessing.py"],"metadata":{"id":"HocY6iBlbqVs","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1691719534472,"user_tz":-480,"elapsed":17245,"user":{"displayName":"ke liao","userId":"04877487214712182993"}},"outputId":"2758962c-0293-41c6-f009-50253d1e8b61"},"execution_count":5,"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n","OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'\n","OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'\n"]}]},{"cell_type":"code","execution_count":6,"metadata":{"id":"jR5utmDMcSZY","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1691720117165,"user_tz":-480,"elapsed":563709,"user":{"displayName":"ke liao","userId":"04877487214712182993"}},"outputId":"6cfb1141-eba5-4b68-bd49-0fe6d0db8514"},"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker/Wav2Lip\n","/content/Double_Talker/Wav2Lip/wav2lip_gradio.py:63: GradioUnusedKwargWarning: You have unused kwarg parameters in Video, please remove them: {'type': 'filepath'}\n","  video_input=gr.Video(label=\"输入视频(.mp4)\", type=\"filepath\", format=\"mp4\")\n","Running on local URL:  http://127.0.0.1:7860\n","Running on public URL: https://71de7b65cfc7dfead3.gradio.live\n","\n","This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n","Using cuda for inference.\n","Reading video frames...\n","Number of frames available for inference: 250\n","Extracting raw audio...\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;35m[mp3 @ 0x56801ebaa1c0] \u001b[0m\u001b[0;33mEstimating duration from bitrate, this may be inaccurate\n","\u001b[0mInput #0, mp3, from '/content/Double_Talker/input_audio/1.mp3':\n","  Metadata:\n","    encoder         : LAME3.101 (beta 2)\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 128 kb/s\n","  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s\n","Stream mapping:\n","  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))\n","Press [q] to stop, [?] for help\n","Output #0, wav, to 'temp/temp.wav':\n","  Metadata:\n","    ISFT            : Lavf58.76.100\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 pcm_s16le\n","size=    1733kB time=00:00:10.03 bitrate=1414.9kbits/s speed= 374x    \n","video:0kB audio:1732kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004397%\n","/content/Double_Talker/Wav2Lip/audio.py:100: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error\n","  return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,\n","(80, 805)\n","Length of mel chunks: 248\n","  0% 0/2 [00:00<?, ?it/s]\n","  0% 0/16 [00:00<?, ?it/s]\u001b[A\n","  6% 1/16 [00:20<05:11, 20.80s/it]\u001b[A\n"," 12% 2/16 [00:21<02:08,  9.18s/it]\u001b[A\n"," 19% 3/16 [00:22<01:11,  5.47s/it]\u001b[A\n"," 25% 4/16 [00:23<00:44,  3.73s/it]\u001b[A\n"," 31% 5/16 [00:25<00:30,  2.78s/it]\u001b[A\n"," 38% 6/16 [00:26<00:21,  2.20s/it]\u001b[A\n"," 44% 7/16 [00:27<00:16,  1.83s/it]\u001b[A\n"," 50% 8/16 [00:28<00:12,  1.61s/it]\u001b[A\n"," 56% 9/16 [00:29<00:10,  1.51s/it]\u001b[A\n"," 62% 10/16 [00:30<00:08,  1.43s/it]\u001b[A\n"," 69% 11/16 [00:32<00:06,  1.35s/it]\u001b[A\n"," 75% 12/16 [00:33<00:05,  1.26s/it]\u001b[A\n"," 81% 13/16 [00:34<00:03,  1.20s/it]\u001b[A\n"," 88% 14/16 [00:35<00:02,  1.16s/it]\u001b[A\n"," 94% 15/16 [00:36<00:01,  1.13s/it]\u001b[A\n","100% 16/16 [00:43<00:00,  2.71s/it]\n","Load checkpoint from: checkpoints/wav2lip_gan.pth\n","Model loaded\n","100% 2/2 [01:05<00:00, 32.87s/it]\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;33mGuessed Channel Layout for Input Stream #0.0 : stereo\n","\u001b[0mInput #0, wav, from 'temp/temp.wav':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, bitrate: 1411 kb/s\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","Input #1, avi, from 'temp/result.avi':\n","  Metadata:\n","    software        : Lavf59.27.100\n","  Duration: 00:00:09.92, start: 0.000000, bitrate: 505 kb/s\n","  Stream #1:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 497 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc\n","Stream mapping:\n","  Stream #1:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\n","  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0m\u001b[0;33m-qscale is ignored, -crf is recommended.\n","\u001b[0m\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mprofile High, level 3.0, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/input_video_input_audio/1L_1.mp4':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 480x720 [SAR 1:1 DAR 2:3], q=2-31, 25 fps, 12800 tbn\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 aac\n","frame=  248 fps= 85 q=-1.0 Lsize=     497kB time=00:00:10.05 bitrate= 405.0kbits/s speed=3.43x    \n","video:332kB audio:156kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.897373%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mframe I:1     Avg QP:20.34  size:  9482\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mframe P:118   Avg QP:20.24  size:  2402\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mframe B:129   Avg QP:21.46  size:   360\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mconsecutive B-frames: 21.4% 23.4% 13.3% 41.9%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mmb I  I16..4: 21.1% 77.6%  1.3%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mmb P  I16..4:  0.9%  5.9%  0.1%  P16..4: 21.9%  5.9%  3.1%  0.0%  0.0%    skip:62.3%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mmb B  I16..4:  0.1%  0.3%  0.0%  B16..8: 18.0%  0.5%  0.0%  direct: 0.1%  skip:80.9%  L0:45.8% L1:52.3% BI: 1.9%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0m8x8 transform intra:83.7% inter:86.9%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mcoded y,uvDC,uvAC intra: 57.0% 47.9% 7.6% inter: 4.4% 5.2% 0.1%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mi16 v,h,dc,p: 55% 18% 15% 12%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 21% 31%  3%  1%  2%  1%  3%  2%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48% 21% 14%  2%  3%  4%  4%  2%  2%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mi8c dc,h,v,p: 46% 18% 33%  3%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mref P L0: 72.8% 10.2% 11.9%  5.1%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mref B L0: 82.6% 13.7%  3.7%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mref B L1: 97.5%  2.5%\n","\u001b[1;36m[libx264 @ 0x5921edf49540] \u001b[0mkb/s:273.72\n","\u001b[1;36m[aac @ 0x5921edf53540] \u001b[0mQavg: 5888.839\n","Using cuda for inference.\n","Reading video frames...\n","Number of frames available for inference: 250\n","Extracting raw audio...\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;35m[mp3 @ 0x5763fdb291c0] \u001b[0m\u001b[0;33mEstimating duration from bitrate, this may be inaccurate\n","\u001b[0mInput #0, mp3, from '/content/Double_Talker/input_audio/2.mp3':\n","  Metadata:\n","    encoder         : LAME3.101 (beta 2)\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 128 kb/s\n","  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s\n","Stream mapping:\n","  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))\n","Press [q] to stop, [?] for help\n","Output #0, wav, to 'temp/temp.wav':\n","  Metadata:\n","    ISFT            : Lavf58.76.100\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 pcm_s16le\n","size=    1733kB time=00:00:10.03 bitrate=1414.9kbits/s speed= 427x    \n","video:0kB audio:1732kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004397%\n","/content/Double_Talker/Wav2Lip/audio.py:100: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error\n","  return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,\n","(80, 805)\n","Length of mel chunks: 248\n","  0% 0/2 [00:00<?, ?it/s]\n","  0% 0/16 [00:00<?, ?it/s]\u001b[A\n","  6% 1/16 [00:15<03:56, 15.74s/it]\u001b[A\n"," 12% 2/16 [00:16<01:41,  7.22s/it]\u001b[A\n"," 19% 3/16 [00:18<00:58,  4.49s/it]\u001b[A\n"," 25% 4/16 [00:19<00:38,  3.23s/it]\u001b[A\n"," 31% 5/16 [00:20<00:27,  2.52s/it]\u001b[A\n"," 38% 6/16 [00:22<00:20,  2.09s/it]\u001b[A\n"," 44% 7/16 [00:23<00:16,  1.78s/it]\u001b[A\n"," 50% 8/16 [00:24<00:12,  1.55s/it]\u001b[A\n"," 56% 9/16 [00:25<00:09,  1.40s/it]\u001b[A\n"," 62% 10/16 [00:26<00:07,  1.30s/it]\u001b[A\n"," 69% 11/16 [00:27<00:06,  1.23s/it]\u001b[A\n"," 75% 12/16 [00:28<00:04,  1.18s/it]\u001b[A\n"," 81% 13/16 [00:29<00:03,  1.14s/it]\u001b[A\n"," 88% 14/16 [00:30<00:02,  1.13s/it]\u001b[A\n"," 94% 15/16 [00:31<00:01,  1.16s/it]\u001b[A\n","100% 16/16 [00:39<00:00,  2.45s/it]\n","Load checkpoint from: checkpoints/wav2lip_gan.pth\n","Model loaded\n","100% 2/2 [00:58<00:00, 29.04s/it]\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;33mGuessed Channel Layout for Input Stream #0.0 : stereo\n","\u001b[0mInput #0, wav, from 'temp/temp.wav':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, bitrate: 1411 kb/s\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","Input #1, avi, from 'temp/result.avi':\n","  Metadata:\n","    software        : Lavf59.27.100\n","  Duration: 00:00:09.92, start: 0.000000, bitrate: 532 kb/s\n","  Stream #1:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 525 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc\n","Stream mapping:\n","  Stream #1:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\n","  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0m\u001b[0;33m-qscale is ignored, -crf is recommended.\n","\u001b[0m\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mprofile High, level 3.0, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/input_video_input_audio/2R_2.mp4':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 480x720 [SAR 1:1 DAR 2:3], q=2-31, 25 fps, 12800 tbn\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 aac\n","frame=  248 fps= 71 q=-1.0 Lsize=     528kB time=00:00:10.05 bitrate= 430.0kbits/s speed= 2.9x    \n","video:360kB audio:159kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.749827%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mframe I:1     Avg QP:20.67  size:  9357\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mframe P:141   Avg QP:21.32  size:  2303\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mframe B:106   Avg QP:24.44  size:   319\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mconsecutive B-frames: 31.9% 27.4% 18.1% 22.6%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mmb I  I16..4: 24.2% 74.7%  1.0%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mmb P  I16..4:  1.0%  6.0%  0.1%  P16..4: 23.6%  5.3%  2.7%  0.0%  0.0%    skip:61.4%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mmb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 16.8%  0.4%  0.0%  direct: 0.1%  skip:82.2%  L0:44.2% L1:54.0% BI: 1.8%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0m8x8 transform intra:83.9% inter:85.6%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mcoded y,uvDC,uvAC intra: 58.0% 37.8% 4.3% inter: 4.9% 5.1% 0.0%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mi16 v,h,dc,p: 55% 21% 15%  9%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 21% 33%  3%  1%  2%  2%  3%  2%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 19% 11%  2%  4%  5%  4%  3%  1%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mi8c dc,h,v,p: 57% 16% 25%  2%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mref P L0: 74.8% 11.2% 10.2%  3.8%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mref B L0: 83.4% 14.4%  2.2%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mref B L1: 98.2%  1.8%\n","\u001b[1;36m[libx264 @ 0x562228022540] \u001b[0mkb/s:296.67\n","\u001b[1;36m[aac @ 0x56222802c540] \u001b[0mQavg: 785.362\n","Using cuda for inference.\n","Reading video frames...\n","Number of frames available for inference: 250\n","Extracting raw audio...\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;35m[mp3 @ 0x5b6bbb9a41c0] \u001b[0m\u001b[0;33mEstimating duration from bitrate, this may be inaccurate\n","\u001b[0mInput #0, mp3, from '/content/Double_Talker/input_audio/3.mp3':\n","  Metadata:\n","    encoder         : LAME3.101 (beta 2)\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 128 kb/s\n","  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s\n","Stream mapping:\n","  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))\n","Press [q] to stop, [?] for help\n","Output #0, wav, to 'temp/temp.wav':\n","  Metadata:\n","    ISFT            : Lavf58.76.100\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 pcm_s16le\n","size=    1733kB time=00:00:10.03 bitrate=1414.9kbits/s speed= 425x    \n","video:0kB audio:1732kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004397%\n","/content/Double_Talker/Wav2Lip/audio.py:100: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error\n","  return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,\n","(80, 805)\n","Length of mel chunks: 248\n","  0% 0/2 [00:00<?, ?it/s]\n","  0% 0/16 [00:00<?, ?it/s]\u001b[A\n","  6% 1/16 [00:15<03:50, 15.40s/it]\u001b[A\n"," 12% 2/16 [00:16<01:37,  6.98s/it]\u001b[A\n"," 19% 3/16 [00:17<00:55,  4.29s/it]\u001b[A\n"," 25% 4/16 [00:18<00:36,  3.03s/it]\u001b[A\n"," 31% 5/16 [00:19<00:25,  2.36s/it]\u001b[A\n"," 38% 6/16 [00:21<00:20,  2.01s/it]\u001b[A\n"," 44% 7/16 [00:22<00:16,  1.78s/it]\u001b[A\n"," 50% 8/16 [00:23<00:13,  1.63s/it]\u001b[A\n"," 56% 9/16 [00:24<00:10,  1.49s/it]\u001b[A\n"," 62% 10/16 [00:26<00:08,  1.37s/it]\u001b[A\n"," 69% 11/16 [00:27<00:06,  1.29s/it]\u001b[A\n"," 75% 12/16 [00:28<00:04,  1.23s/it]\u001b[A\n"," 81% 13/16 [00:29<00:03,  1.18s/it]\u001b[A\n"," 88% 14/16 [00:30<00:02,  1.15s/it]\u001b[A\n"," 94% 15/16 [00:31<00:01,  1.13s/it]\u001b[A\n","100% 16/16 [00:38<00:00,  2.42s/it]\n","Load checkpoint from: checkpoints/wav2lip_gan.pth\n","Model loaded\n","100% 2/2 [00:57<00:00, 28.93s/it]\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;33mGuessed Channel Layout for Input Stream #0.0 : stereo\n","\u001b[0mInput #0, wav, from 'temp/temp.wav':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, bitrate: 1411 kb/s\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","Input #1, avi, from 'temp/result.avi':\n","  Metadata:\n","    software        : Lavf59.27.100\n","  Duration: 00:00:09.92, start: 0.000000, bitrate: 508 kb/s\n","  Stream #1:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 501 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc\n","Stream mapping:\n","  Stream #1:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\n","  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0m\u001b[0;33m-qscale is ignored, -crf is recommended.\n","\u001b[0m\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mprofile High, level 3.0, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/input_video_input_audio/3L_3.mp4':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 480x720 [SAR 1:1 DAR 2:3], q=2-31, 25 fps, 12800 tbn\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 aac\n","frame=  248 fps= 83 q=-1.0 Lsize=     498kB time=00:00:10.05 bitrate= 405.9kbits/s speed=3.36x    \n","video:333kB audio:156kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.902888%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mframe I:1     Avg QP:20.24  size:  9606\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mframe P:111   Avg QP:20.38  size:  2513\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mframe B:136   Avg QP:21.53  size:   377\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mconsecutive B-frames: 17.7% 21.8% 16.9% 43.5%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mmb I  I16..4: 19.9% 78.2%  1.9%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mmb P  I16..4:  1.0%  6.1%  0.1%  P16..4: 22.4%  6.1%  3.4%  0.0%  0.0%    skip:61.0%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mmb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 19.1%  0.5%  0.0%  direct: 0.1%  skip:79.8%  L0:45.6% L1:52.8% BI: 1.6%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0m8x8 transform intra:83.5% inter:87.4%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mcoded y,uvDC,uvAC intra: 56.9% 47.9% 7.7% inter: 4.4% 5.1% 0.1%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mi16 v,h,dc,p: 55% 17% 16% 12%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 21% 30%  3%  1%  2%  1%  3%  3%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 20% 14%  1%  4%  3%  3%  2%  1%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mi8c dc,h,v,p: 46% 19% 32%  3%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mref P L0: 72.3% 10.2% 12.3%  5.1%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mref B L0: 81.0% 15.2%  3.8%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mref B L1: 96.9%  3.1%\n","\u001b[1;36m[libx264 @ 0x5a27a8772540] \u001b[0mkb/s:274.05\n","\u001b[1;36m[aac @ 0x5a27a877c540] \u001b[0mQavg: 4611.168\n","Using cuda for inference.\n","Reading video frames...\n","Number of frames available for inference: 250\n","Extracting raw audio...\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;35m[mp3 @ 0x5c53f420e1c0] \u001b[0m\u001b[0;33mEstimating duration from bitrate, this may be inaccurate\n","\u001b[0mInput #0, mp3, from '/content/Double_Talker/input_audio/4.mp3':\n","  Metadata:\n","    encoder         : LAME3.101 (beta 2)\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 128 kb/s\n","  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s\n","Stream mapping:\n","  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))\n","Press [q] to stop, [?] for help\n","Output #0, wav, to 'temp/temp.wav':\n","  Metadata:\n","    ISFT            : Lavf58.76.100\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 pcm_s16le\n","size=    1733kB time=00:00:10.03 bitrate=1414.9kbits/s speed= 237x    \n","video:0kB audio:1732kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004397%\n","/content/Double_Talker/Wav2Lip/audio.py:100: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error\n","  return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,\n","(80, 805)\n","Length of mel chunks: 248\n","  0% 0/2 [00:00<?, ?it/s]\n","  0% 0/16 [00:00<?, ?it/s]\u001b[A\n","  6% 1/16 [00:15<03:52, 15.51s/it]\u001b[A\n"," 12% 2/16 [00:16<01:38,  7.02s/it]\u001b[A\n"," 19% 3/16 [00:17<00:56,  4.31s/it]\u001b[A\n"," 25% 4/16 [00:18<00:36,  3.03s/it]\u001b[A\n"," 31% 5/16 [00:19<00:25,  2.32s/it]\u001b[A\n"," 38% 6/16 [00:20<00:19,  1.90s/it]\u001b[A\n"," 44% 7/16 [00:21<00:14,  1.64s/it]\u001b[A\n"," 50% 8/16 [00:23<00:11,  1.46s/it]\u001b[A\n"," 56% 9/16 [00:24<00:09,  1.36s/it]\u001b[A\n"," 62% 10/16 [00:25<00:07,  1.33s/it]\u001b[A\n"," 69% 11/16 [00:26<00:06,  1.31s/it]\u001b[A\n"," 75% 12/16 [00:27<00:05,  1.29s/it]\u001b[A\n"," 81% 13/16 [00:29<00:03,  1.25s/it]\u001b[A\n"," 88% 14/16 [00:30<00:02,  1.20s/it]\u001b[A\n"," 94% 15/16 [00:31<00:01,  1.17s/it]\u001b[A\n","100% 16/16 [00:38<00:00,  2.42s/it]\n","Load checkpoint from: checkpoints/wav2lip_gan.pth\n","Model loaded\n","100% 2/2 [00:59<00:00, 29.55s/it]\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;33mGuessed Channel Layout for Input Stream #0.0 : stereo\n","\u001b[0mInput #0, wav, from 'temp/temp.wav':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, bitrate: 1411 kb/s\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","Input #1, avi, from 'temp/result.avi':\n","  Metadata:\n","    software        : Lavf59.27.100\n","  Duration: 00:00:09.92, start: 0.000000, bitrate: 530 kb/s\n","  Stream #1:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 523 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc\n","Stream mapping:\n","  Stream #1:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\n","  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0m\u001b[0;33m-qscale is ignored, -crf is recommended.\n","\u001b[0m\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mprofile High, level 3.0, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/input_video_input_audio/4R_4.mp4':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 480x720 [SAR 1:1 DAR 2:3], q=2-31, 25 fps, 12800 tbn\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 aac\n","frame=  248 fps= 58 q=-1.0 Lsize=     526kB time=00:00:10.05 bitrate= 428.2kbits/s speed=2.36x    \n","video:358kB audio:159kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.771041%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mframe I:1     Avg QP:20.89  size:  9319\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mframe P:131   Avg QP:21.30  size:  2423\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mframe B:116   Avg QP:24.03  size:   334\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mconsecutive B-frames: 26.6% 27.4% 16.9% 29.0%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mmb I  I16..4: 22.4% 76.4%  1.3%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mmb P  I16..4:  1.1%  6.5%  0.1%  P16..4: 24.2%  5.5%  2.7%  0.0%  0.0%    skip:59.9%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mmb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 17.6%  0.4%  0.0%  direct: 0.1%  skip:81.4%  L0:48.2% L1:49.7% BI: 2.1%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0m8x8 transform intra:83.6% inter:85.2%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mcoded y,uvDC,uvAC intra: 57.7% 38.2% 4.5% inter: 4.7% 4.9% 0.0%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mi16 v,h,dc,p: 54% 22% 15%  9%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 21% 31%  3%  1%  2%  2%  3%  2%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 54% 20%  9%  2%  3%  4%  4%  3%  1%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mi8c dc,h,v,p: 57% 15% 26%  2%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mref P L0: 73.7% 11.3% 10.7%  4.3%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mref B L0: 81.1% 16.2%  2.8%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mref B L1: 97.9%  2.1%\n","\u001b[1;36m[libx264 @ 0x58f6d9eaa540] \u001b[0mkb/s:294.68\n","\u001b[1;36m[aac @ 0x58f6d9eb4540] \u001b[0mQavg: 1883.535\n","Using cuda for inference.\n","Reading video frames...\n","Number of frames available for inference: 250\n","Extracting raw audio...\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;35m[mp3 @ 0x5a52617a31c0] \u001b[0m\u001b[0;33mEstimating duration from bitrate, this may be inaccurate\n","\u001b[0mInput #0, mp3, from '/content/Double_Talker/input_audio/5.mp3':\n","  Metadata:\n","    encoder         : LAME3.101 (beta 2)\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 128 kb/s\n","  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s\n","Stream mapping:\n","  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))\n","Press [q] to stop, [?] for help\n","Output #0, wav, to 'temp/temp.wav':\n","  Metadata:\n","    ISFT            : Lavf58.76.100\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 pcm_s16le\n","size=    1733kB time=00:00:10.03 bitrate=1414.9kbits/s speed= 362x    \n","video:0kB audio:1732kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004397%\n","/content/Double_Talker/Wav2Lip/audio.py:100: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error\n","  return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,\n","(80, 805)\n","Length of mel chunks: 248\n","  0% 0/2 [00:00<?, ?it/s]\n","  0% 0/16 [00:00<?, ?it/s]\u001b[A\n","  6% 1/16 [00:15<03:54, 15.64s/it]\u001b[A\n"," 12% 2/16 [00:16<01:39,  7.14s/it]\u001b[A\n"," 19% 3/16 [00:18<00:58,  4.47s/it]\u001b[A\n"," 25% 4/16 [00:19<00:38,  3.24s/it]\u001b[A\n"," 31% 5/16 [00:20<00:28,  2.55s/it]\u001b[A\n"," 38% 6/16 [00:21<00:20,  2.09s/it]\u001b[A\n"," 44% 7/16 [00:23<00:15,  1.76s/it]\u001b[A\n"," 50% 8/16 [00:24<00:12,  1.55s/it]\u001b[A\n"," 56% 9/16 [00:25<00:09,  1.41s/it]\u001b[A\n"," 62% 10/16 [00:26<00:07,  1.31s/it]\u001b[A\n"," 69% 11/16 [00:27<00:06,  1.25s/it]\u001b[A\n"," 75% 12/16 [00:28<00:04,  1.21s/it]\u001b[A\n"," 81% 13/16 [00:29<00:03,  1.17s/it]\u001b[A\n"," 88% 14/16 [00:30<00:02,  1.14s/it]\u001b[A\n"," 94% 15/16 [00:31<00:01,  1.14s/it]\u001b[A\n","100% 16/16 [00:39<00:00,  2.46s/it]\n","Load checkpoint from: checkpoints/wav2lip_gan.pth\n","Model loaded\n","100% 2/2 [00:58<00:00, 29.43s/it]\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;33mGuessed Channel Layout for Input Stream #0.0 : stereo\n","\u001b[0mInput #0, wav, from 'temp/temp.wav':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, bitrate: 1411 kb/s\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","Input #1, avi, from 'temp/result.avi':\n","  Metadata:\n","    software        : Lavf59.27.100\n","  Duration: 00:00:09.92, start: 0.000000, bitrate: 508 kb/s\n","  Stream #1:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 501 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc\n","Stream mapping:\n","  Stream #1:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\n","  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0m\u001b[0;33m-qscale is ignored, -crf is recommended.\n","\u001b[0m\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mprofile High, level 3.0, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/input_video_input_audio/5L_5.mp4':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 480x720 [SAR 1:1 DAR 2:3], q=2-31, 25 fps, 12800 tbn\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 aac\n","frame=  248 fps= 52 q=-1.0 Lsize=     509kB time=00:00:10.05 bitrate= 414.5kbits/s speed= 2.1x    \n","video:335kB audio:164kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.867198%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mframe I:1     Avg QP:20.26  size:  9512\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mframe P:114   Avg QP:20.31  size:  2478\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mframe B:133   Avg QP:21.20  size:   379\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mconsecutive B-frames: 18.5% 25.8% 12.1% 43.5%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mmb I  I16..4: 20.2% 78.5%  1.3%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mmb P  I16..4:  0.9%  6.2%  0.1%  P16..4: 22.4%  6.1%  3.1%  0.0%  0.0%    skip:61.2%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mmb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 18.9%  0.5%  0.0%  direct: 0.1%  skip:80.0%  L0:47.5% L1:50.8% BI: 1.8%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0m8x8 transform intra:84.6% inter:87.6%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mcoded y,uvDC,uvAC intra: 57.6% 47.9% 7.7% inter: 4.4% 5.1% 0.1%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mi16 v,h,dc,p: 55% 18% 15% 12%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 21% 30%  3%  1%  2%  1%  3%  3%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 21% 15%  2%  2%  3%  3%  2%  1%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mi8c dc,h,v,p: 46% 18% 33%  3%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mref P L0: 72.1% 10.1% 12.3%  5.5%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mref B L0: 81.1% 14.4%  4.5%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mref B L1: 96.9%  3.1%\n","\u001b[1;36m[libx264 @ 0x5ba081316540] \u001b[0mkb/s:276.16\n","\u001b[1;36m[aac @ 0x5ba081320540] \u001b[0mQavg: 4748.131\n","Using cuda for inference.\n","Reading video frames...\n","Number of frames available for inference: 250\n","Extracting raw audio...\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;35m[mp3 @ 0x59c4222fb1c0] \u001b[0m\u001b[0;33mEstimating duration from bitrate, this may be inaccurate\n","\u001b[0mInput #0, mp3, from '/content/Double_Talker/input_audio/6.mp3':\n","  Metadata:\n","    encoder         : LAME3.101 (beta 2)\n","  Duration: 00:00:10.03, start: 0.000000, bitrate: 128 kb/s\n","  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s\n","Stream mapping:\n","  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))\n","Press [q] to stop, [?] for help\n","Output #0, wav, to 'temp/temp.wav':\n","  Metadata:\n","    ISFT            : Lavf58.76.100\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 pcm_s16le\n","size=    1728kB time=00:00:10.00 bitrate=1414.9kbits/s speed= 392x    \n","video:0kB audio:1728kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004408%\n","/content/Double_Talker/Wav2Lip/audio.py:100: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error\n","  return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,\n","(80, 803)\n","Length of mel chunks: 248\n","  0% 0/2 [00:00<?, ?it/s]\n","  0% 0/16 [00:00<?, ?it/s]\u001b[A\n","  6% 1/16 [00:15<03:56, 15.78s/it]\u001b[A\n"," 12% 2/16 [00:16<01:40,  7.17s/it]\u001b[A\n"," 19% 3/16 [00:18<00:57,  4.42s/it]\u001b[A\n"," 25% 4/16 [00:19<00:37,  3.12s/it]\u001b[A\n"," 31% 5/16 [00:20<00:26,  2.44s/it]\u001b[A\n"," 38% 6/16 [00:21<00:20,  2.10s/it]\u001b[A\n"," 44% 7/16 [00:23<00:16,  1.83s/it]\u001b[A\n"," 50% 8/16 [00:24<00:13,  1.63s/it]\u001b[A\n"," 56% 9/16 [00:25<00:10,  1.47s/it]\u001b[A\n"," 62% 10/16 [00:26<00:08,  1.37s/it]\u001b[A\n"," 69% 11/16 [00:27<00:06,  1.30s/it]\u001b[A\n"," 75% 12/16 [00:28<00:04,  1.24s/it]\u001b[A\n"," 81% 13/16 [00:29<00:03,  1.19s/it]\u001b[A\n"," 88% 14/16 [00:30<00:02,  1.16s/it]\u001b[A\n"," 94% 15/16 [00:32<00:01,  1.15s/it]\u001b[A\n","100% 16/16 [00:39<00:00,  2.47s/it]\n","Load checkpoint from: checkpoints/wav2lip_gan.pth\n","Model loaded\n","100% 2/2 [00:59<00:00, 29.65s/it]\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;33mGuessed Channel Layout for Input Stream #0.0 : stereo\n","\u001b[0mInput #0, wav, from 'temp/temp.wav':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.03, bitrate: 1411 kb/s\n","  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s\n","Input #1, avi, from 'temp/result.avi':\n","  Metadata:\n","    software        : Lavf59.27.100\n","  Duration: 00:00:09.92, start: 0.000000, bitrate: 532 kb/s\n","  Stream #1:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 525 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc\n","Stream mapping:\n","  Stream #1:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))\n","  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0m\u001b[0;33m-qscale is ignored, -crf is recommended.\n","\u001b[0m\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mprofile High, level 3.0, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/input_video_input_audio/6R_6.mp4':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 480x720 [SAR 1:1 DAR 2:3], q=2-31, 25 fps, 12800 tbn\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s\n","    Metadata:\n","      encoder         : Lavc58.134.100 aac\n","frame=  248 fps= 59 q=-1.0 Lsize=     524kB time=00:00:10.00 bitrate= 428.8kbits/s speed=2.39x    \n","video:358kB audio:156kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.758523%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mframe I:1     Avg QP:20.80  size:  9341\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mframe P:143   Avg QP:21.28  size:  2251\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mframe B:104   Avg QP:24.16  size:   337\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mconsecutive B-frames: 34.3% 25.8% 10.9% 29.0%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mmb I  I16..4: 24.6% 74.2%  1.2%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mmb P  I16..4:  0.9%  5.8%  0.1%  P16..4: 23.2%  5.2%  2.5%  0.0%  0.0%    skip:62.2%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mmb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 17.3%  0.4%  0.0%  direct: 0.1%  skip:81.6%  L0:44.5% L1:53.6% BI: 1.9%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0m8x8 transform intra:83.8% inter:85.8%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mcoded y,uvDC,uvAC intra: 57.5% 37.8% 4.5% inter: 4.9% 5.1% 0.0%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mi16 v,h,dc,p: 54% 22% 15%  9%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 21% 32%  3%  1%  2%  2%  3%  2%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 54% 18% 10%  2%  4%  4%  5%  2%  1%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mi8c dc,h,v,p: 57% 15% 26%  2%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mref P L0: 74.9% 11.3% 10.0%  3.8%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mref B L0: 83.4% 13.5%  3.1%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mref B L1: 97.5%  2.5%\n","\u001b[1;36m[libx264 @ 0x592bd39fb540] \u001b[0mkb/s:295.41\n","\u001b[1;36m[aac @ 0x592bd3a05540] \u001b[0mQavg: 2207.823\n","Keyboard interruption in main thread... closing server.\n","Killing tunnel 127.0.0.1:7860 <> https://71de7b65cfc7dfead3.gradio.live\n","^C\n"]}],"source":["#@title 六、界面化处理\n","# 使用\"批处理\" 输入 /content/Double_Talker/input_video  和 /content/Double_Talker/input_audio\n","%cd /content/Double_Talker/Wav2Lip\n","# 将wav2lip_gradio.py移动至Wav2lip文件下\n","!mv /content/Double_Talker/wav2lip_gradio.py  /content/Double_Talker/Wav2Lip\n","!python wav2lip_gradio.py\n","\n","# 运行完后，请点击运行关闭"]},{"cell_type":"code","source":["#@title 七、将单人数字人合并成双人数字人\n","%cd /content/Double_Talker\n","!python merge_video.py"],"metadata":{"id":"MW2sFX3TdQwd","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1691720198210,"user_tz":-480,"elapsed":43323,"user":{"displayName":"ke liao","userId":"04877487214712182993"}},"outputId":"0d8c5665-75a7-4bef-f091-08dfe6aaa533"},"execution_count":7,"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/input_video_input_audio/1L_1.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 404 kb/s\n","  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 274 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/ls_video/1R.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf59.27.100\n","  Duration: 00:00:10.00, start: 0.000000, bitrate: 436 kb/s\n","  Stream #1:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 435 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:0 (h264) -> pad (graph 0)\n","  Stream #1:0 (mpeg4) -> overlay:overlay (graph 0)\n","  overlay (graph 0) -> Stream #0:0 (libx264)\n","  Stream #0:1 -> #0:1 (aac (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mprofile High, level 3.1, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/output/ouput_1.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 960x720 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 12800 tbn (default)\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","      encoder         : Lavc58.134.100 aac\n","frame=  250 fps= 38 q=-1.0 Lsize=     705kB time=00:00:10.05 bitrate= 574.8kbits/s speed=1.54x    \n","video:541kB audio:155kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.366972%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mframe I:1     Avg QP:20.14  size: 19036\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mframe P:77    Avg QP:20.12  size:  5477\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mframe B:172   Avg QP:21.52  size:   652\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mconsecutive B-frames:  1.6% 16.0% 12.0% 70.4%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mmb I  I16..4: 20.1% 78.6%  1.4%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mmb P  I16..4:  1.2%  5.6%  0.1%  P16..4: 26.7%  7.7%  4.0%  0.0%  0.0%    skip:54.8%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mmb B  I16..4:  0.1%  0.2%  0.0%  B16..8: 18.7%  0.4%  0.0%  direct: 0.1%  skip:80.6%  L0:46.0% L1:52.5% BI: 1.4%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0m8x8 transform intra:80.0% inter:86.1%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mcoded y,uvDC,uvAC intra: 51.2% 41.2% 5.4% inter: 3.7% 4.8% 0.0%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mi16 v,h,dc,p: 54% 17% 15% 15%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 19% 31%  2%  2%  2%  2%  3%  2%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 20% 15%  3%  4%  4%  3%  3%  2%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mi8c dc,h,v,p: 50% 17% 31%  3%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mref P L0: 71.0% 10.3% 13.8%  4.9%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mref B L0: 83.1% 14.0%  3.0%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mref B L1: 96.0%  4.0%\n","\u001b[1;36m[libx264 @ 0x5892738ca240] \u001b[0mkb/s:442.34\n","\u001b[1;36m[aac @ 0x5892738c7f40] \u001b[0mQavg: 6088.483\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/ls_video/2L.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf59.27.100\n","  Duration: 00:00:10.00, start: 0.000000, bitrate: 448 kb/s\n","  Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 446 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/input_video_input_audio/2R_2.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 429 kb/s\n","  Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 297 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:0 (mpeg4) -> pad (graph 0)\n","  Stream #1:0 (h264) -> overlay:overlay (graph 0)\n","  overlay (graph 0) -> Stream #0:0 (libx264)\n","  Stream #1:1 -> #0:1 (aac (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mprofile High, level 3.1, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/output/ouput_2.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 960x720 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 12800 tbn (default)\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","      encoder         : Lavc58.134.100 aac\n","frame=  250 fps= 26 q=-1.0 Lsize=     727kB time=00:00:10.05 bitrate= 592.2kbits/s speed=1.05x    \n","video:558kB audio:159kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.317256%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mframe I:1     Avg QP:21.08  size: 18832\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mframe P:80    Avg QP:20.60  size:  5608\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mframe B:169   Avg QP:21.75  size:   612\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mconsecutive B-frames:  1.6% 17.6% 21.6% 59.2%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mmb I  I16..4: 19.3% 79.1%  1.7%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mmb P  I16..4:  1.4%  5.8%  0.1%  P16..4: 27.8%  7.7%  3.7%  0.0%  0.0%    skip:53.4%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mmb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 18.0%  0.3%  0.0%  direct: 0.1%  skip:81.4%  L0:42.4% L1:56.4% BI: 1.2%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0m8x8 transform intra:79.0% inter:86.1%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mcoded y,uvDC,uvAC intra: 51.0% 46.1% 6.6% inter: 3.8% 5.1% 0.0%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mi16 v,h,dc,p: 51% 19% 12% 18%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 20% 30%  3%  2%  2%  2%  3%  3%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48% 20% 14%  2%  4%  4%  4%  2%  1%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mi8c dc,h,v,p: 50% 17% 30%  3%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mref P L0: 71.1% 11.1% 13.3%  4.6%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mref B L0: 82.0% 14.9%  3.1%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mref B L1: 95.7%  4.3%\n","\u001b[1;36m[libx264 @ 0x572c0870bd80] \u001b[0mkb/s:456.75\n","\u001b[1;36m[aac @ 0x572c0871ee80] \u001b[0mQavg: 761.731\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/input_video_input_audio/3L_3.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 405 kb/s\n","  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 274 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/ls_video/3R.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf59.27.100\n","  Duration: 00:00:10.00, start: 0.000000, bitrate: 436 kb/s\n","  Stream #1:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 435 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:0 (h264) -> pad (graph 0)\n","  Stream #1:0 (mpeg4) -> overlay:overlay (graph 0)\n","  overlay (graph 0) -> Stream #0:0 (libx264)\n","  Stream #0:1 -> #0:1 (aac (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mprofile High, level 3.1, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/output/ouput_3.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 960x720 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 12800 tbn (default)\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","      encoder         : Lavc58.134.100 aac\n","frame=  250 fps= 43 q=-1.0 Lsize=     706kB time=00:00:10.05 bitrate= 575.4kbits/s speed=1.72x    \n","video:539kB audio:158kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.369938%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mframe I:1     Avg QP:19.14  size: 19125\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mframe P:72    Avg QP:20.23  size:  5787\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mframe B:177   Avg QP:21.33  size:   652\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mconsecutive B-frames:  0.4% 12.8%  8.4% 78.4%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mmb I  I16..4: 26.3% 72.3%  1.4%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mmb P  I16..4:  1.2%  5.6%  0.2%  P16..4: 28.2%  8.0%  4.3%  0.0%  0.0%    skip:52.5%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mmb B  I16..4:  0.1%  0.2%  0.0%  B16..8: 18.9%  0.4%  0.0%  direct: 0.1%  skip:80.4%  L0:46.4% L1:52.3% BI: 1.3%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0m8x8 transform intra:78.5% inter:85.9%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mcoded y,uvDC,uvAC intra: 50.8% 41.5% 5.4% inter: 3.8% 4.8% 0.0%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mi16 v,h,dc,p: 56% 16% 13% 15%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 19% 30%  3%  2%  2%  2%  3%  2%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 21% 14%  3%  3%  3%  3%  2%  1%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mi8c dc,h,v,p: 49% 17% 31%  3%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mref P L0: 70.0% 10.3% 15.1%  4.6%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mref B L0: 85.0% 12.5%  2.5%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mref B L1: 96.7%  3.3%\n","\u001b[1;36m[libx264 @ 0x5ced12460a40] \u001b[0mkb/s:440.97\n","\u001b[1;36m[aac @ 0x5ced12452000] \u001b[0mQavg: 5510.936\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/ls_video/4L.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf59.27.100\n","  Duration: 00:00:10.00, start: 0.000000, bitrate: 448 kb/s\n","  Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 446 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/input_video_input_audio/4R_4.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 428 kb/s\n","  Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 295 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:0 (mpeg4) -> pad (graph 0)\n","  Stream #1:0 (h264) -> overlay:overlay (graph 0)\n","  overlay (graph 0) -> Stream #0:0 (libx264)\n","  Stream #1:1 -> #0:1 (aac (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mprofile High, level 3.1, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/output/ouput_4.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 960x720 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 12800 tbn (default)\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","      encoder         : Lavc58.134.100 aac\n","frame=  250 fps= 35 q=-1.0 Lsize=     731kB time=00:00:10.05 bitrate= 595.5kbits/s speed=1.41x    \n","video:562kB audio:159kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.300162%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mframe I:1     Avg QP:20.58  size: 19044\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mframe P:82    Avg QP:20.64  size:  5591\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mframe B:167   Avg QP:21.56  size:   586\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mconsecutive B-frames:  1.6% 16.8% 33.6% 48.0%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mmb I  I16..4: 20.0% 78.3%  1.7%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mmb P  I16..4:  1.3%  6.2%  0.2%  P16..4: 27.5%  7.4%  3.8%  0.0%  0.0%    skip:53.5%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mmb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 18.1%  0.3%  0.0%  direct: 0.1%  skip:81.4%  L0:44.1% L1:54.6% BI: 1.4%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0m8x8 transform intra:79.9% inter:86.4%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mcoded y,uvDC,uvAC intra: 52.5% 46.5% 6.6% inter: 3.8% 5.0% 0.0%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mi16 v,h,dc,p: 50% 19% 12% 18%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 20% 29%  3%  2%  2%  2%  3%  3%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 20% 15%  3%  4%  3%  4%  2%  1%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mi8c dc,h,v,p: 49% 17% 30%  3%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mref P L0: 72.1% 10.8% 12.6%  4.5%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mref B L0: 81.4% 15.5%  3.1%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mref B L1: 97.9%  2.1%\n","\u001b[1;36m[libx264 @ 0x5769763063c0] \u001b[0mkb/s:460.23\n","\u001b[1;36m[aac @ 0x57697629e340] \u001b[0mQavg: 1881.479\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/input_video_input_audio/5L_5.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.06, start: 0.000000, bitrate: 414 kb/s\n","  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 276 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 133 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/ls_video/5R.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf59.27.100\n","  Duration: 00:00:10.00, start: 0.000000, bitrate: 436 kb/s\n","  Stream #1:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 435 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:0 (h264) -> pad (graph 0)\n","  Stream #1:0 (mpeg4) -> overlay:overlay (graph 0)\n","  overlay (graph 0) -> Stream #0:0 (libx264)\n","  Stream #0:1 -> #0:1 (aac (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mprofile High, level 3.1, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/output/ouput_5.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 960x720 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 12800 tbn (default)\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","      encoder         : Lavc58.134.100 aac\n","frame=  250 fps= 38 q=-1.0 Lsize=     713kB time=00:00:10.05 bitrate= 581.2kbits/s speed=1.52x    \n","video:541kB audio:163kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.352743%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mframe I:1     Avg QP:20.52  size: 18905\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mframe P:78    Avg QP:20.22  size:  5418\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mframe B:171   Avg QP:21.42  size:   651\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mconsecutive B-frames:  1.2% 19.2% 10.8% 68.8%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mmb I  I16..4: 20.1% 79.1%  0.7%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mmb P  I16..4:  1.2%  5.3%  0.1%  P16..4: 27.0%  7.5%  4.0%  0.0%  0.0%    skip:54.8%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mmb B  I16..4:  0.1%  0.2%  0.0%  B16..8: 18.6%  0.4%  0.0%  direct: 0.1%  skip:80.7%  L0:44.4% L1:54.3% BI: 1.3%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0m8x8 transform intra:79.6% inter:86.3%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mcoded y,uvDC,uvAC intra: 50.7% 41.3% 5.4% inter: 3.8% 4.8% 0.0%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mi16 v,h,dc,p: 52% 18% 14% 16%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 19% 30%  2%  2%  2%  2%  3%  2%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 55% 17% 15%  3%  2%  3%  2%  3%  1%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mi8c dc,h,v,p: 50% 17% 31%  3%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mref P L0: 69.9% 10.1% 14.5%  5.5%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mref B L0: 82.7% 14.3%  3.0%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mref B L1: 96.1%  3.9%\n","\u001b[1;36m[libx264 @ 0x5557395e1540] \u001b[0mkb/s:442.25\n","\u001b[1;36m[aac @ 0x5557395cadc0] \u001b[0mQavg: 4530.681\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/ls_video/6L.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf59.27.100\n","  Duration: 00:00:10.00, start: 0.000000, bitrate: 448 kb/s\n","  Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 446 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/input_video_input_audio/6R_6.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Duration: 00:00:10.03, start: 0.000000, bitrate: 427 kb/s\n","  Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x720 [SAR 1:1 DAR 2:3], 295 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:0 (mpeg4) -> pad (graph 0)\n","  Stream #1:0 (h264) -> overlay:overlay (graph 0)\n","  overlay (graph 0) -> Stream #0:0 (libx264)\n","  Stream #1:1 -> #0:1 (aac (native) -> aac (native))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0musing SAR=1/1\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mprofile High, level 3.1, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/Double_Talker/output/ouput_6.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2mp41\n","    encoder         : Lavf58.76.100\n","  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 960x720 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 12800 tbn (default)\n","    Metadata:\n","      encoder         : Lavc58.134.100 libx264\n","    Side data:\n","      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","      encoder         : Lavc58.134.100 aac\n","frame=  250 fps= 42 q=-1.0 Lsize=     729kB time=00:00:10.00 bitrate= 596.5kbits/s speed=1.67x    \n","video:563kB audio:156kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.310564%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mframe I:1     Avg QP:21.11  size: 18796\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mframe P:83    Avg QP:20.56  size:  5479\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mframe B:166   Avg QP:21.63  size:   616\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mconsecutive B-frames:  2.4% 19.2% 24.0% 54.4%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mmb I  I16..4: 20.1% 78.3%  1.6%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mmb P  I16..4:  1.3%  5.8%  0.1%  P16..4: 27.3%  7.4%  3.7%  0.0%  0.0%    skip:54.4%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mmb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 18.3%  0.3%  0.0%  direct: 0.1%  skip:81.1%  L0:45.7% L1:52.9% BI: 1.4%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0m8x8 transform intra:79.6% inter:86.4%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mcoded y,uvDC,uvAC intra: 51.4% 46.6% 6.6% inter: 3.8% 5.2% 0.0%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mi16 v,h,dc,p: 50% 18% 12% 19%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 20% 30%  3%  2%  2%  2%  3%  3%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 19% 14%  3%  3%  3%  3%  3%  1%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mi8c dc,h,v,p: 50% 17% 30%  3%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mWeighted P-Frames: Y:0.0% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mref P L0: 71.9% 10.8% 12.7%  4.6%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mref B L0: 83.8% 13.1%  3.1%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mref B L1: 97.5%  2.5%\n","\u001b[1;36m[libx264 @ 0x5a6d408383c0] \u001b[0mkb/s:460.72\n","\u001b[1;36m[aac @ 0x5a6d40896900] \u001b[0mQavg: 2143.121\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[1;31m/content/Double_Talker/input_video_input_audio/7L_7.mp4: No such file or directory\n","\u001b[0mffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[1;31m/content/Double_Talker/ls_video/8L.mp4: No such file or directory\n","\u001b[0mffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[1;31m/content/Double_Talker/input_video_input_audio/9L_9.mp4: No such file or directory\n","\u001b[0mffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[1;31m/content/Double_Talker/ls_video/10L.mp4: No such file or directory\n","\u001b[0m"]}]},{"cell_type":"code","source":["#@title 八、将生成的数字人视频连接起来\n","# 到这一步双人数字人已经运行完毕，后面是进行超分处理。\n","%cd /content/Double_Talker\n","# !ffmpeg -i \"concat:/content/Double_Talker/output/ouput_s1.mp4|/content/Double_Talker/output/ouput_s2.mp4\" -codec copy /content/Double_Talker/final_output/final.mp4\n","# 将视频连接起来\n","!ffmpeg -f concat -safe 0 -i <(for f in output/*.mp4; do echo \"file '$PWD/$f'\"; done) -c copy /content/Double_Talker/final_output/final.mp4\n","# 提取视频中的音频，用于后续处理\n","!ffmpeg -i /content/Double_Talker/final_output/final.mp4 /content/Double_Talker/final_output/final.mp3"],"metadata":{"id":"AngJA-zydQzd","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1691720200755,"user_tz":-480,"elapsed":2572,"user":{"displayName":"ke liao","userId":"04877487214712182993"}},"outputId":"10284ae0-d5f1-4fbc-fc80-0bacc64b7047"},"execution_count":8,"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","\u001b[0;35m[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5d3422c0ed80] \u001b[0mAuto-inserting h264_mp4toannexb bitstream filter\n","Input #0, concat, from '/dev/fd/63':\n","  Duration: N/A, start: -0.023220, bitrate: 569 kb/s\n","  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x720 [SAR 1:1 DAR 4:3], 442 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Output #0, mp4, to '/content/Double_Talker/final_output/final.mp4':\n","  Metadata:\n","    encoder         : Lavf58.76.100\n","  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x720 [SAR 1:1 DAR 4:3], q=2-31, 442 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:0 -> #0:0 (copy)\n","  Stream #0:1 -> #0:1 (copy)\n","Press [q] to stop, [?] for help\n","\u001b[0;35m[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5d3422c0ed80] \u001b[0mAuto-inserting h264_mp4toannexb bitstream filter\n","    Last message repeated 1 times\n","\u001b[0;35m[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5d3422c13f40] \u001b[0mAuto-inserting h264_mp4toannexb bitstream filter\n","    Last message repeated 2 times\n","frame= 1500 fps=0.0 q=-1.0 Lsize=    4305kB time=00:01:00.42 bitrate= 583.7kbits/s speed= 403x    \n","video:3304kB audio:951kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.176861%\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/final_output/final.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Duration: 00:01:00.45, start: 0.000000, bitrate: 583 kb/s\n","  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x720 [SAR 1:1 DAR 4:3], 448 kb/s, 24.84 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:1 -> #0:0 (aac (native) -> mp3 (libmp3lame))\n","Press [q] to stop, [?] for help\n","Output #0, mp3, to '/content/Double_Talker/final_output/final.mp3':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    TSSE            : Lavf58.76.100\n","  Stream #0:0(und): Audio: mp3, 44100 Hz, stereo, fltp (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","      encoder         : Lavc58.134.100 libmp3lame\n","size=     947kB time=00:01:00.43 bitrate= 128.4kbits/s speed=33.4x    \n","video:0kB audio:947kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.036714%\n"]}]},{"cell_type":"code","source":[],"metadata":{"id":"Wx57BzVAYqZ8"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#@title 九、将推理出来的双人 数字人视频进行超分。\n","# 将Wav2Lip生成的视频转化成图片保存到images，用于后期高清化处理\n","%cd /content/Double_Talker/CodeFormer\n","!rm -rf images\n","!mkdir images\n","!ffmpeg -i /content/Double_Talker/final_output/final.mp4  -r 30  /content/Double_Talker/CodeFormer/images/%5d.png"],"metadata":{"id":"vZ2CjVPtE46V","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1691720612156,"user_tz":-480,"elapsed":72743,"user":{"displayName":"ke liao","userId":"04877487214712182993"}},"outputId":"8ce40a9f-84c3-4520-bd44-f78761662bcc"},"execution_count":9,"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker/CodeFormer\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n","  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 70.100 / 56. 70.100\n","  libavcodec     58.134.100 / 58.134.100\n","  libavformat    58. 76.100 / 58. 76.100\n","  libavdevice    58. 13.100 / 58. 13.100\n","  libavfilter     7.110.100 /  7.110.100\n","  libswscale      5.  9.100 /  5.  9.100\n","  libswresample   3.  9.100 /  3.  9.100\n","  libpostproc    55.  9.100 / 55.  9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/Double_Talker/final_output/final.mp4':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Duration: 00:01:00.45, start: 0.000000, bitrate: 583 kb/s\n","  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x720 [SAR 1:1 DAR 4:3], 448 kb/s, 24.84 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)\n","    Metadata:\n","      handler_name    : SoundHandler\n","      vendor_id       : [0][0][0][0]\n","Stream mapping:\n","  Stream #0:0 -> #0:0 (h264 (native) -> png (native))\n","Press [q] to stop, [?] for help\n","Output #0, image2, to '/content/Double_Talker/CodeFormer/images/%5d.png':\n","  Metadata:\n","    major_brand     : isom\n","    minor_version   : 512\n","    compatible_brands: isomiso2avc1mp41\n","    encoder         : Lavf58.76.100\n","  Stream #0:0(und): Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 960x720 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 30 fps, 30 tbn (default)\n","    Metadata:\n","      handler_name    : VideoHandler\n","      vendor_id       : [0][0][0][0]\n","      encoder         : Lavc58.134.100 png\n","frame= 1812 fps= 25 q=-0.0 Lsize=N/A time=00:01:00.40 bitrate=N/A dup=312 drop=0 speed=0.836x    \n","video:974611kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\n"]}]},{"cell_type":"code","source":["#@title 十、用CodeFormer进行高清化处理\n","%cd /content/Double_Talker/CodeFormer\n","!rm -rf results\n","!mkdir results\n","# 用CodeFormer进行推理\n","## 只修复人脸\n","# CODEFORMER_FIDELITY = 0.5\n","# !python inference_codeformer.py -w $CODEFORMER_FIDELITY --has_aligned --input_path /content/Double_Talker/CodeFormer\n","# whole images ##整体图片修复\n","CODEFORMER_FIDELITY = 0.7\n","!python inference_codeformer.py -w $CODEFORMER_FIDELITY --input_path /content/Double_Talker/CodeFormer/images --bg_upsampler realesrgan"],"metadata":{"id":"WxUm7CAze0u3","colab":{"base_uri":"https://localhost:8080/"},"outputId":"822d8684-f46a-4f14-a7c7-76168ffad40f"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["/content/Double_Talker/CodeFormer\n","Downloading: \"https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/RealESRGAN_x2plus.pth\" to /content/Double_Talker/CodeFormer/weights/realesrgan/RealESRGAN_x2plus.pth\n","\n","100% 64.0M/64.0M [00:03<00:00, 17.5MB/s]\n","Face detection model: retinaface_resnet50\n","Background upsampling: True, Face upsampling: False\n","[1/1812] Processing: 00001.png\n","\tdetect 2 faces\n","[2/1812] Processing: 00002.png\n","\tdetect 2 faces\n","[3/1812] Processing: 00003.png\n","\tdetect 2 faces\n","[4/1812] Processing: 00004.png\n","\tdetect 2 faces\n","[5/1812] Processing: 00005.png\n","\tdetect 2 faces\n","[6/1812] Processing: 00006.png\n","\tdetect 2 faces\n","[7/1812] Processing: 00007.png\n","\tdetect 2 faces\n","[8/1812] Processing: 00008.png\n","\tdetect 2 faces\n","[9/1812] Processing: 00009.png\n","\tdetect 2 faces\n","[10/1812] Processing: 00010.png\n","\tdetect 2 faces\n","[11/1812] Processing: 00011.png\n","\tdetect 2 faces\n","[12/1812] Processing: 00012.png\n","\tdetect 2 faces\n","[13/1812] Processing: 00013.png\n","\tdetect 2 faces\n","[14/1812] Processing: 00014.png\n","\tdetect 2 faces\n","[15/1812] Processing: 00015.png\n","\tdetect 2 faces\n","[16/1812] Processing: 00016.png\n","\tdetect 2 faces\n","[17/1812] Processing: 00017.png\n","\tdetect 2 faces\n","[18/1812] Processing: 00018.png\n","\tdetect 2 faces\n","[19/1812] Processing: 00019.png\n","\tdetect 2 faces\n","[20/1812] Processing: 00020.png\n","\tdetect 2 faces\n","[21/1812] Processing: 00021.png\n","\tdetect 2 faces\n","[22/1812] Processing: 00022.png\n","\tdetect 2 faces\n","[23/1812] Processing: 00023.png\n","\tdetect 2 faces\n","[24/1812] Processing: 00024.png\n","\tdetect 2 faces\n","[25/1812] Processing: 00025.png\n","\tdetect 2 faces\n","[26/1812] Processing: 00026.png\n","\tdetect 2 faces\n","[27/1812] Processing: 00027.png\n","\tdetect 2 faces\n","[28/1812] Processing: 00028.png\n","\tdetect 2 faces\n","[29/1812] Processing: 00029.png\n","\tdetect 2 faces\n","[30/1812] Processing: 00030.png\n","\tdetect 2 faces\n","[31/1812] Processing: 00031.png\n","\tdetect 2 faces\n","[32/1812] Processing: 00032.png\n","\tdetect 2 faces\n","[33/1812] Processing: 00033.png\n","\tdetect 2 faces\n","[34/1812] Processing: 00034.png\n","\tdetect 2 faces\n","[35/1812] Processing: 00035.png\n","\tdetect 2 faces\n","[36/1812] Processing: 00036.png\n","\tdetect 2 faces\n","[37/1812] Processing: 00037.png\n","\tdetect 2 faces\n","[38/1812] Processing: 00038.png\n","\tdetect 2 faces\n","[39/1812] Processing: 00039.png\n","\tdetect 2 faces\n","[40/1812] Processing: 00040.png\n","\tdetect 2 faces\n","[41/1812] Processing: 00041.png\n","\tdetect 2 faces\n","[42/1812] Processing: 00042.png\n","\tdetect 2 faces\n","[43/1812] Processing: 00043.png\n","\tdetect 2 faces\n","[44/1812] Processing: 00044.png\n","\tdetect 2 faces\n","[45/1812] Processing: 00045.png\n","\tdetect 2 faces\n","[46/1812] Processing: 00046.png\n","\tdetect 2 faces\n","[47/1812] Processing: 00047.png\n","\tdetect 2 faces\n","[48/1812] Processing: 00048.png\n","\tdetect 2 faces\n","[49/1812] Processing: 00049.png\n","\tdetect 2 faces\n","[50/1812] Processing: 00050.png\n","\tdetect 2 faces\n","[51/1812] Processing: 00051.png\n","\tdetect 2 faces\n","[52/1812] Processing: 00052.png\n","\tdetect 2 faces\n","[53/1812] Processing: 00053.png\n","\tdetect 2 faces\n","[54/1812] Processing: 00054.png\n","\tdetect 2 faces\n","[55/1812] Processing: 00055.png\n","\tdetect 2 faces\n","[56/1812] Processing: 00056.png\n","\tdetect 2 faces\n","[57/1812] Processing: 00057.png\n","\tdetect 2 faces\n","[58/1812] Processing: 00058.png\n","\tdetect 2 faces\n","[59/1812] Processing: 00059.png\n","\tdetect 2 faces\n","[60/1812] Processing: 00060.png\n","\tdetect 2 faces\n","[61/1812] Processing: 00061.png\n","\tdetect 2 faces\n","[62/1812] Processing: 00062.png\n","\tdetect 2 faces\n","[63/1812] Processing: 00063.png\n","\tdetect 2 faces\n","[64/1812] Processing: 00064.png\n","\tdetect 2 faces\n","[65/1812] Processing: 00065.png\n","\tdetect 2 faces\n","[66/1812] Processing: 00066.png\n","\tdetect 2 faces\n","[67/1812] Processing: 00067.png\n","\tdetect 2 faces\n","[68/1812] Processing: 00068.png\n","\tdetect 2 faces\n","[69/1812] Processing: 00069.png\n","\tdetect 2 faces\n","[70/1812] Processing: 00070.png\n","\tdetect 2 faces\n","[71/1812] Processing: 00071.png\n","\tdetect 2 faces\n","[72/1812] Processing: 00072.png\n","\tdetect 2 faces\n","[73/1812] Processing: 00073.png\n","\tdetect 2 faces\n","[74/1812] Processing: 00074.png\n","\tdetect 2 faces\n","[75/1812] Processing: 00075.png\n","\tdetect 2 faces\n","[76/1812] Processing: 00076.png\n","\tdetect 2 faces\n","[77/1812] Processing: 00077.png\n","\tdetect 2 faces\n","[78/1812] Processing: 00078.png\n","\tdetect 2 faces\n","[79/1812] Processing: 00079.png\n","\tdetect 2 faces\n","[80/1812] Processing: 00080.png\n","\tdetect 2 faces\n","[81/1812] Processing: 00081.png\n","\tdetect 2 faces\n","[82/1812] Processing: 00082.png\n","\tdetect 2 faces\n","[83/1812] Processing: 00083.png\n","\tdetect 2 faces\n","[84/1812] Processing: 00084.png\n","\tdetect 2 faces\n","[85/1812] Processing: 00085.png\n","\tdetect 2 faces\n","[86/1812] Processing: 00086.png\n","\tdetect 2 faces\n","[87/1812] Processing: 00087.png\n","\tdetect 2 faces\n","[88/1812] Processing: 00088.png\n","\tdetect 2 faces\n","[89/1812] Processing: 00089.png\n","\tdetect 2 faces\n","[90/1812] Processing: 00090.png\n","\tdetect 2 faces\n","[91/1812] Processing: 00091.png\n","\tdetect 2 faces\n","[92/1812] Processing: 00092.png\n","\tdetect 2 faces\n","[93/1812] Processing: 00093.png\n","\tdetect 2 faces\n","[94/1812] Processing: 00094.png\n","\tdetect 2 faces\n","[95/1812] Processing: 00095.png\n","\tdetect 2 faces\n","[96/1812] Processing: 00096.png\n","\tdetect 2 faces\n","[97/1812] Processing: 00097.png\n","\tdetect 2 faces\n","[98/1812] Processing: 00098.png\n","\tdetect 2 faces\n","[99/1812] Processing: 00099.png\n","\tdetect 2 faces\n","[100/1812] Processing: 00100.png\n","\tdetect 2 faces\n","[101/1812] Processing: 00101.png\n","\tdetect 2 faces\n","[102/1812] Processing: 00102.png\n","\tdetect 2 faces\n","[103/1812] Processing: 00103.png\n","\tdetect 2 faces\n","[104/1812] Processing: 00104.png\n","\tdetect 2 faces\n","[105/1812] Processing: 00105.png\n","\tdetect 2 faces\n","[106/1812] Processing: 00106.png\n","\tdetect 2 faces\n","[107/1812] Processing: 00107.png\n","\tdetect 2 faces\n","[108/1812] Processing: 00108.png\n","\tdetect 2 faces\n","[109/1812] Processing: 00109.png\n","\tdetect 2 faces\n","[110/1812] Processing: 00110.png\n","\tdetect 2 faces\n","[111/1812] Processing: 00111.png\n","\tdetect 2 faces\n","[112/1812] Processing: 00112.png\n","\tdetect 2 faces\n","[113/1812] Processing: 00113.png\n","\tdetect 2 faces\n","[114/1812] Processing: 00114.png\n","\tdetect 2 faces\n","[115/1812] Processing: 00115.png\n","\tdetect 2 faces\n","[116/1812] Processing: 00116.png\n","\tdetect 2 faces\n","[117/1812] Processing: 00117.png\n","\tdetect 2 faces\n","[118/1812] Processing: 00118.png\n","\tdetect 2 faces\n","[119/1812] Processing: 00119.png\n","\tdetect 2 faces\n","[120/1812] Processing: 00120.png\n","\tdetect 2 faces\n","[121/1812] Processing: 00121.png\n","\tdetect 2 faces\n","[122/1812] Processing: 00122.png\n","\tdetect 2 faces\n","[123/1812] Processing: 00123.png\n","\tdetect 2 faces\n","[124/1812] Processing: 00124.png\n","\tdetect 2 faces\n","[125/1812] Processing: 00125.png\n","\tdetect 2 faces\n","[126/1812] Processing: 00126.png\n","\tdetect 2 faces\n","[127/1812] Processing: 00127.png\n","\tdetect 2 faces\n","[128/1812] Processing: 00128.png\n","\tdetect 2 faces\n","[129/1812] Processing: 00129.png\n","\tdetect 2 faces\n","[130/1812] Processing: 00130.png\n","\tdetect 2 faces\n","[131/1812] Processing: 00131.png\n","\tdetect 2 faces\n","[132/1812] Processing: 00132.png\n","\tdetect 2 faces\n","[133/1812] Processing: 00133.png\n","\tdetect 2 faces\n","[134/1812] Processing: 00134.png\n","\tdetect 2 faces\n","[135/1812] Processing: 00135.png\n","\tdetect 2 faces\n","[136/1812] Processing: 00136.png\n","\tdetect 2 faces\n","[137/1812] Processing: 00137.png\n","\tdetect 2 faces\n","[138/1812] Processing: 00138.png\n","\tdetect 2 faces\n","[139/1812] Processing: 00139.png\n","\tdetect 2 faces\n","[140/1812] Processing: 00140.png\n","\tdetect 2 faces\n","[141/1812] Processing: 00141.png\n","\tdetect 2 faces\n","[142/1812] Processing: 00142.png\n","\tdetect 2 faces\n","[143/1812] Processing: 00143.png\n","\tdetect 2 faces\n","[144/1812] Processing: 00144.png\n","\tdetect 2 faces\n","[145/1812] Processing: 00145.png\n","\tdetect 2 faces\n","[146/1812] Processing: 00146.png\n","\tdetect 2 faces\n","[147/1812] Processing: 00147.png\n","\tdetect 2 faces\n","[148/1812] Processing: 00148.png\n","\tdetect 2 faces\n","[149/1812] Processing: 00149.png\n","\tdetect 2 faces\n","[150/1812] Processing: 00150.png\n","\tdetect 2 faces\n","[151/1812] Processing: 00151.png\n","\tdetect 2 faces\n","[152/1812] Processing: 00152.png\n","\tdetect 2 faces\n","[153/1812] Processing: 00153.png\n","\tdetect 2 faces\n","[154/1812] Processing: 00154.png\n","\tdetect 2 faces\n","[155/1812] Processing: 00155.png\n","\tdetect 2 faces\n","[156/1812] Processing: 00156.png\n","\tdetect 2 faces\n","[157/1812] Processing: 00157.png\n","\tdetect 2 faces\n","[158/1812] Processing: 00158.png\n","\tdetect 2 faces\n","[159/1812] Processing: 00159.png\n","\tdetect 2 faces\n","[160/1812] Processing: 00160.png\n","\tdetect 2 faces\n","[161/1812] Processing: 00161.png\n","\tdetect 2 faces\n","[162/1812] Processing: 00162.png\n","\tdetect 2 faces\n","[163/1812] Processing: 00163.png\n","\tdetect 2 faces\n","[164/1812] Processing: 00164.png\n","\tdetect 2 faces\n","[165/1812] Processing: 00165.png\n","\tdetect 2 faces\n","[166/1812] Processing: 00166.png\n","\tdetect 2 faces\n","[167/1812] Processing: 00167.png\n","\tdetect 2 faces\n","[168/1812] Processing: 00168.png\n","\tdetect 2 faces\n","[169/1812] Processing: 00169.png\n","\tdetect 2 faces\n","[170/1812] Processing: 00170.png\n","\tdetect 2 faces\n","[171/1812] Processing: 00171.png\n","\tdetect 2 faces\n","[172/1812] Processing: 00172.png\n","\tdetect 2 faces\n","[173/1812] Processing: 00173.png\n","\tdetect 2 faces\n","[174/1812] Processing: 00174.png\n","\tdetect 2 faces\n","[175/1812] Processing: 00175.png\n","\tdetect 2 faces\n","[176/1812] Processing: 00176.png\n","\tdetect 2 faces\n","[177/1812] Processing: 00177.png\n","\tdetect 2 faces\n","[178/1812] Processing: 00178.png\n","\tdetect 2 faces\n","[179/1812] Processing: 00179.png\n","\tdetect 2 faces\n","[180/1812] Processing: 00180.png\n","\tdetect 2 faces\n","[181/1812] Processing: 00181.png\n","\tdetect 2 faces\n","[182/1812] Processing: 00182.png\n","\tdetect 2 faces\n","[183/1812] Processing: 00183.png\n","\tdetect 2 faces\n","[184/1812] Processing: 00184.png\n","\tdetect 2 faces\n","[185/1812] Processing: 00185.png\n","\tdetect 2 faces\n","[186/1812] Processing: 00186.png\n","\tdetect 2 faces\n","[187/1812] Processing: 00187.png\n","\tdetect 2 faces\n","[188/1812] Processing: 00188.png\n","\tdetect 2 faces\n","[189/1812] Processing: 00189.png\n","\tdetect 2 faces\n","[190/1812] Processing: 00190.png\n","\tdetect 2 faces\n","[191/1812] Processing: 00191.png\n","\tdetect 2 faces\n","[192/1812] Processing: 00192.png\n","\tdetect 2 faces\n","[193/1812] Processing: 00193.png\n","\tdetect 2 faces\n","[194/1812] Processing: 00194.png\n","\tdetect 2 faces\n","[195/1812] Processing: 00195.png\n","\tdetect 2 faces\n","[196/1812] Processing: 00196.png\n","\tdetect 2 faces\n","[197/1812] Processing: 00197.png\n","\tdetect 2 faces\n","[198/1812] Processing: 00198.png\n","\tdetect 2 faces\n","[199/1812] Processing: 00199.png\n","\tdetect 2 faces\n","[200/1812] Processing: 00200.png\n","\tdetect 2 faces\n","[201/1812] Processing: 00201.png\n","\tdetect 2 faces\n","[202/1812] Processing: 00202.png\n","\tdetect 2 faces\n","[203/1812] Processing: 00203.png\n","\tdetect 2 faces\n","[204/1812] Processing: 00204.png\n","\tdetect 2 faces\n","[205/1812] Processing: 00205.png\n","\tdetect 2 faces\n","[206/1812] Processing: 00206.png\n","\tdetect 2 faces\n","[207/1812] Processing: 00207.png\n","\tdetect 2 faces\n","[208/1812] Processing: 00208.png\n","\tdetect 2 faces\n","[209/1812] Processing: 00209.png\n","\tdetect 2 faces\n","[210/1812] Processing: 00210.png\n","\tdetect 2 faces\n","[211/1812] Processing: 00211.png\n","\tdetect 2 faces\n","[212/1812] Processing: 00212.png\n","\tdetect 2 faces\n","[213/1812] Processing: 00213.png\n","\tdetect 2 faces\n","[214/1812] Processing: 00214.png\n","\tdetect 2 faces\n","[215/1812] Processing: 00215.png\n","\tdetect 2 faces\n","[216/1812] Processing: 00216.png\n","\tdetect 2 faces\n","[217/1812] Processing: 00217.png\n","\tdetect 2 faces\n","[218/1812] Processing: 00218.png\n","\tdetect 2 faces\n","[219/1812] Processing: 00219.png\n","\tdetect 2 faces\n","[220/1812] Processing: 00220.png\n","\tdetect 2 faces\n","[221/1812] Processing: 00221.png\n","\tdetect 2 faces\n","[222/1812] Processing: 00222.png\n","\tdetect 2 faces\n","[223/1812] Processing: 00223.png\n","\tdetect 2 faces\n","[224/1812] Processing: 00224.png\n","\tdetect 2 faces\n","[225/1812] Processing: 00225.png\n","\tdetect 2 faces\n","[226/1812] Processing: 00226.png\n","\tdetect 2 faces\n","[227/1812] Processing: 00227.png\n","\tdetect 2 faces\n","[228/1812] Processing: 00228.png\n","\tdetect 2 faces\n","[229/1812] Processing: 00229.png\n","\tdetect 2 faces\n","[230/1812] Processing: 00230.png\n","\tdetect 2 faces\n","[231/1812] Processing: 00231.png\n","\tdetect 2 faces\n","[232/1812] Processing: 00232.png\n","\tdetect 2 faces\n","[233/1812] Processing: 00233.png\n","\tdetect 2 faces\n","[234/1812] Processing: 00234.png\n","\tdetect 2 faces\n","[235/1812] Processing: 00235.png\n","\tdetect 2 faces\n","[236/1812] Processing: 00236.png\n","\tdetect 2 faces\n","[237/1812] Processing: 00237.png\n","\tdetect 2 faces\n","[238/1812] Processing: 00238.png\n","\tdetect 2 faces\n","[239/1812] Processing: 00239.png\n","\tdetect 2 faces\n","[240/1812] Processing: 00240.png\n","\tdetect 2 faces\n","[241/1812] Processing: 00241.png\n","\tdetect 2 faces\n","[242/1812] Processing: 00242.png\n","\tdetect 2 faces\n","[243/1812] Processing: 00243.png\n","\tdetect 2 faces\n","[244/1812] Processing: 00244.png\n","\tdetect 2 faces\n","[245/1812] Processing: 00245.png\n","\tdetect 2 faces\n","[246/1812] Processing: 00246.png\n","\tdetect 2 faces\n","[247/1812] Processing: 00247.png\n","\tdetect 2 faces\n","[248/1812] Processing: 00248.png\n","\tdetect 2 faces\n","[249/1812] Processing: 00249.png\n","\tdetect 2 faces\n","[250/1812] Processing: 00250.png\n","\tdetect 2 faces\n","[251/1812] Processing: 00251.png\n","\tdetect 2 faces\n","[252/1812] Processing: 00252.png\n","\tdetect 2 faces\n","[253/1812] Processing: 00253.png\n","\tdetect 2 faces\n","[254/1812] Processing: 00254.png\n","\tdetect 2 faces\n","[255/1812] Processing: 00255.png\n","\tdetect 2 faces\n","[256/1812] Processing: 00256.png\n","\tdetect 2 faces\n","[257/1812] Processing: 00257.png\n","\tdetect 2 faces\n","[258/1812] Processing: 00258.png\n","\tdetect 2 faces\n","[259/1812] Processing: 00259.png\n","\tdetect 2 faces\n","[260/1812] Processing: 00260.png\n","\tdetect 2 faces\n","[261/1812] Processing: 00261.png\n","\tdetect 2 faces\n","[262/1812] Processing: 00262.png\n","\tdetect 2 faces\n","[263/1812] Processing: 00263.png\n","\tdetect 2 faces\n","[264/1812] Processing: 00264.png\n","\tdetect 2 faces\n","[265/1812] Processing: 00265.png\n","\tdetect 2 faces\n","[266/1812] Processing: 00266.png\n","\tdetect 2 faces\n","[267/1812] Processing: 00267.png\n","\tdetect 2 faces\n","[268/1812] Processing: 00268.png\n","\tdetect 2 faces\n","[269/1812] Processing: 00269.png\n","\tdetect 2 faces\n","[270/1812] Processing: 00270.png\n","\tdetect 2 faces\n","[271/1812] Processing: 00271.png\n","\tdetect 2 faces\n","[272/1812] Processing: 00272.png\n","\tdetect 2 faces\n","[273/1812] Processing: 00273.png\n","\tdetect 2 faces\n","[274/1812] Processing: 00274.png\n","\tdetect 2 faces\n","[275/1812] Processing: 00275.png\n","\tdetect 2 faces\n","[276/1812] Processing: 00276.png\n","\tdetect 2 faces\n","[277/1812] Processing: 00277.png\n","\tdetect 2 faces\n","[278/1812] Processing: 00278.png\n","\tdetect 2 faces\n","[279/1812] Processing: 00279.png\n","\tdetect 2 faces\n","[280/1812] Processing: 00280.png\n","\tdetect 2 faces\n","[281/1812] Processing: 00281.png\n","\tdetect 2 faces\n","[282/1812] Processing: 00282.png\n","\tdetect 2 faces\n","[283/1812] Processing: 00283.png\n","\tdetect 2 faces\n","[284/1812] Processing: 00284.png\n","\tdetect 2 faces\n","[285/1812] Processing: 00285.png\n","\tdetect 2 faces\n","[286/1812] Processing: 00286.png\n","\tdetect 2 faces\n","[287/1812] Processing: 00287.png\n","\tdetect 2 faces\n","[288/1812] Processing: 00288.png\n","\tdetect 2 faces\n","[289/1812] Processing: 00289.png\n","\tdetect 2 faces\n","[290/1812] Processing: 00290.png\n","\tdetect 2 faces\n","[291/1812] Processing: 00291.png\n","\tdetect 2 faces\n","[292/1812] Processing: 00292.png\n","\tdetect 2 faces\n","[293/1812] Processing: 00293.png\n","\tdetect 2 faces\n","[294/1812] Processing: 00294.png\n","\tdetect 2 faces\n","[295/1812] Processing: 00295.png\n","\tdetect 2 faces\n","[296/1812] Processing: 00296.png\n","\tdetect 2 faces\n","[297/1812] Processing: 00297.png\n","\tdetect 2 faces\n","[298/1812] Processing: 00298.png\n","\tdetect 2 faces\n","[299/1812] Processing: 00299.png\n","\tdetect 2 faces\n","[300/1812] Processing: 00300.png\n","\tdetect 2 faces\n","[301/1812] Processing: 00301.png\n","\tdetect 2 faces\n","[302/1812] Processing: 00302.png\n","\tdetect 2 faces\n","[303/1812] Processing: 00303.png\n","\tdetect 2 faces\n","[304/1812] Processing: 00304.png\n","\tdetect 2 faces\n","[305/1812] Processing: 00305.png\n","\tdetect 2 faces\n","[306/1812] Processing: 00306.png\n","\tdetect 2 faces\n","[307/1812] Processing: 00307.png\n","\tdetect 2 faces\n","[308/1812] Processing: 00308.png\n","\tdetect 2 faces\n","[309/1812] Processing: 00309.png\n","\tdetect 2 faces\n","[310/1812] Processing: 00310.png\n","\tdetect 2 faces\n","[311/1812] Processing: 00311.png\n","\tdetect 2 faces\n","[312/1812] Processing: 00312.png\n","\tdetect 2 faces\n","[313/1812] Processing: 00313.png\n","\tdetect 2 faces\n","[314/1812] Processing: 00314.png\n","\tdetect 2 faces\n","[315/1812] Processing: 00315.png\n","\tdetect 2 faces\n","[316/1812] Processing: 00316.png\n","\tdetect 2 faces\n","[317/1812] Processing: 00317.png\n","\tdetect 2 faces\n","[318/1812] Processing: 00318.png\n","\tdetect 2 faces\n","[319/1812] Processing: 00319.png\n","\tdetect 2 faces\n","[320/1812] Processing: 00320.png\n","\tdetect 2 faces\n","[321/1812] Processing: 00321.png\n","\tdetect 2 faces\n","[322/1812] Processing: 00322.png\n","\tdetect 2 faces\n","[323/1812] Processing: 00323.png\n","\tdetect 2 faces\n","[324/1812] Processing: 00324.png\n","\tdetect 2 faces\n","[325/1812] Processing: 00325.png\n","\tdetect 2 faces\n","[326/1812] Processing: 00326.png\n","\tdetect 2 faces\n","[327/1812] Processing: 00327.png\n","\tdetect 2 faces\n","[328/1812] Processing: 00328.png\n","\tdetect 2 faces\n","[329/1812] Processing: 00329.png\n","\tdetect 2 faces\n","[330/1812] Processing: 00330.png\n","\tdetect 2 faces\n","[331/1812] Processing: 00331.png\n","\tdetect 2 faces\n","[332/1812] Processing: 00332.png\n","\tdetect 2 faces\n","[333/1812] Processing: 00333.png\n","\tdetect 2 faces\n","[334/1812] Processing: 00334.png\n","\tdetect 2 faces\n","[335/1812] Processing: 00335.png\n","\tdetect 2 faces\n","[336/1812] Processing: 00336.png\n","\tdetect 2 faces\n","[337/1812] Processing: 00337.png\n","\tdetect 2 faces\n","[338/1812] Processing: 00338.png\n","\tdetect 2 faces\n","[339/1812] Processing: 00339.png\n","\tdetect 2 faces\n","[340/1812] Processing: 00340.png\n","\tdetect 2 faces\n","[341/1812] Processing: 00341.png\n","\tdetect 2 faces\n","[342/1812] Processing: 00342.png\n","\tdetect 2 faces\n","[343/1812] Processing: 00343.png\n","\tdetect 2 faces\n","[344/1812] Processing: 00344.png\n","\tdetect 2 faces\n","[345/1812] Processing: 00345.png\n","\tdetect 2 faces\n","[346/1812] Processing: 00346.png\n","\tdetect 2 faces\n","[347/1812] Processing: 00347.png\n","\tdetect 2 faces\n","[348/1812] Processing: 00348.png\n","\tdetect 2 faces\n","[349/1812] Processing: 00349.png\n","\tdetect 2 faces\n","[350/1812] Processing: 00350.png\n","\tdetect 2 faces\n","[351/1812] Processing: 00351.png\n","\tdetect 2 faces\n","[352/1812] Processing: 00352.png\n","\tdetect 2 faces\n","[353/1812] Processing: 00353.png\n","\tdetect 2 faces\n","[354/1812] Processing: 00354.png\n","\tdetect 2 faces\n","[355/1812] Processing: 00355.png\n","\tdetect 2 faces\n","[356/1812] Processing: 00356.png\n","\tdetect 2 faces\n","[357/1812] Processing: 00357.png\n","\tdetect 2 faces\n","[358/1812] Processing: 00358.png\n","\tdetect 2 faces\n","[359/1812] Processing: 00359.png\n","\tdetect 2 faces\n","[360/1812] Processing: 00360.png\n","\tdetect 2 faces\n","[361/1812] Processing: 00361.png\n","\tdetect 2 faces\n","[362/1812] Processing: 00362.png\n","\tdetect 2 faces\n","[363/1812] Processing: 00363.png\n","\tdetect 2 faces\n","[364/1812] Processing: 00364.png\n","\tdetect 2 faces\n","[365/1812] Processing: 00365.png\n","\tdetect 2 faces\n","[366/1812] Processing: 00366.png\n","\tdetect 2 faces\n","[367/1812] Processing: 00367.png\n","\tdetect 2 faces\n","[368/1812] Processing: 00368.png\n","\tdetect 2 faces\n","[369/1812] Processing: 00369.png\n","\tdetect 2 faces\n","[370/1812] Processing: 00370.png\n","\tdetect 2 faces\n","[371/1812] Processing: 00371.png\n","\tdetect 2 faces\n","[372/1812] Processing: 00372.png\n","\tdetect 2 faces\n","[373/1812] Processing: 00373.png\n","\tdetect 2 faces\n","[374/1812] Processing: 00374.png\n","\tdetect 2 faces\n","[375/1812] Processing: 00375.png\n","\tdetect 2 faces\n","[376/1812] Processing: 00376.png\n","\tdetect 2 faces\n","[377/1812] Processing: 00377.png\n","\tdetect 2 faces\n","[378/1812] Processing: 00378.png\n","\tdetect 2 faces\n","[379/1812] Processing: 00379.png\n","\tdetect 2 faces\n","[380/1812] Processing: 00380.png\n","\tdetect 2 faces\n","[381/1812] Processing: 00381.png\n","\tdetect 2 faces\n","[382/1812] Processing: 00382.png\n","\tdetect 2 faces\n","[383/1812] Processing: 00383.png\n","\tdetect 2 faces\n","[384/1812] Processing: 00384.png\n","\tdetect 2 faces\n","[385/1812] Processing: 00385.png\n","\tdetect 2 faces\n","[386/1812] Processing: 00386.png\n","\tdetect 2 faces\n","[387/1812] Processing: 00387.png\n","\tdetect 2 faces\n","[388/1812] Processing: 00388.png\n","\tdetect 2 faces\n","[389/1812] Processing: 00389.png\n","\tdetect 2 faces\n","[390/1812] Processing: 00390.png\n","\tdetect 2 faces\n","[391/1812] Processing: 00391.png\n","\tdetect 2 faces\n","[392/1812] Processing: 00392.png\n","\tdetect 2 faces\n","[393/1812] Processing: 00393.png\n","\tdetect 2 faces\n","[394/1812] Processing: 00394.png\n","\tdetect 2 faces\n","[395/1812] Processing: 00395.png\n","\tdetect 2 faces\n","[396/1812] Processing: 00396.png\n","\tdetect 2 faces\n","[397/1812] Processing: 00397.png\n","\tdetect 2 faces\n","[398/1812] Processing: 00398.png\n","\tdetect 2 faces\n","[399/1812] Processing: 00399.png\n","\tdetect 2 faces\n","[400/1812] Processing: 00400.png\n","\tdetect 2 faces\n","[401/1812] Processing: 00401.png\n","\tdetect 2 faces\n","[402/1812] Processing: 00402.png\n","\tdetect 2 faces\n","[403/1812] Processing: 00403.png\n","\tdetect 2 faces\n","[404/1812] Processing: 00404.png\n","\tdetect 2 faces\n","[405/1812] Processing: 00405.png\n","\tdetect 2 faces\n","[406/1812] Processing: 00406.png\n","\tdetect 2 faces\n","[407/1812] Processing: 00407.png\n","\tdetect 2 faces\n","[408/1812] Processing: 00408.png\n","\tdetect 2 faces\n","[409/1812] Processing: 00409.png\n","\tdetect 2 faces\n","[410/1812] Processing: 00410.png\n","\tdetect 2 faces\n","[411/1812] Processing: 00411.png\n","\tdetect 2 faces\n","[412/1812] Processing: 00412.png\n","\tdetect 2 faces\n","[413/1812] Processing: 00413.png\n","\tdetect 2 faces\n","[414/1812] Processing: 00414.png\n","\tdetect 2 faces\n","[415/1812] Processing: 00415.png\n","\tdetect 2 faces\n","[416/1812] Processing: 00416.png\n","\tdetect 2 faces\n","[417/1812] Processing: 00417.png\n","\tdetect 2 faces\n","[418/1812] Processing: 00418.png\n","\tdetect 2 faces\n","[419/1812] Processing: 00419.png\n","\tdetect 2 faces\n","[420/1812] Processing: 00420.png\n","\tdetect 2 faces\n","[421/1812] Processing: 00421.png\n","\tdetect 2 faces\n","[422/1812] Processing: 00422.png\n","\tdetect 2 faces\n","[423/1812] Processing: 00423.png\n","\tdetect 2 faces\n","[424/1812] Processing: 00424.png\n","\tdetect 2 faces\n","[425/1812] Processing: 00425.png\n","\tdetect 2 faces\n","[426/1812] Processing: 00426.png\n","\tdetect 2 faces\n"]}]},{"cell_type":"code","source":["#@title 十一、合并成高清视频\n","# ffmpeg 将文件中每一帧图片合并成mp4\n","%cd /content/Double_Talker/CodeFormer/results/images_0.7/final_results\n","!ffmpeg -framerate 30 -i %05d.png  -pix_fmt yuv420p  /content/Double_Talker/CodeFormer/results/images_0.7/high_definition.mp4\n","%cd /content/\n","# 音视频合成\n","!ffmpeg -i /content/Double_Talker/CodeFormer/results/images_0.7/high_definition.mp4 -i /content/Double_Talker/final_output/final.mp3 -c copy /content/Double_Talker/final_output/high_definition_final.mp4\n","print('恭喜您高清数字人视频合并成功,')"],"metadata":{"id":"tfXGjVvlxRVS","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1686982029741,"user_tz":-480,"elapsed":559,"user":{"displayName":"rui lu","userId":"15695518765939055507"}},"outputId":"fc3e9b9a-a6b0-468e-a240-82b12831bf7a"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["[Errno 2] No such file or directory: '/content/CodeFormer/results/images_0.7/final_results'\n","/content/CodeFormer\n","ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers\n","  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 31.100 / 56. 31.100\n","  libavcodec     58. 54.100 / 58. 54.100\n","  libavformat    58. 29.100 / 58. 29.100\n","  libavdevice    58.  8.100 / 58.  8.100\n","  libavfilter     7. 57.100 /  7. 57.100\n","  libavresample   4.  0.  0 /  4.  0.  0\n","  libswscale      5.  5.100 /  5.  5.100\n","  libswresample   3.  5.100 /  3.  5.100\n","  libpostproc    55.  5.100 / 55.  5.100\n","\u001b[0;35m[image2 @ 0x559b3baa6f00] \u001b[0m\u001b[1;31mCould find no file with path '%05d.png' and index in the range 0-4\n","\u001b[0m\u001b[1;31m%05d.png: No such file or directory\n","\u001b[0m/content\n","ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers\n","  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)\n","  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n","  libavutil      56. 31.100 / 56. 31.100\n","  libavcodec     58. 54.100 / 58. 54.100\n","  libavformat    58. 29.100 / 58. 29.100\n","  libavdevice    58.  8.100 / 58.  8.100\n","  libavfilter     7. 57.100 /  7. 57.100\n","  libavresample   4.  0.  0 /  4.  0.  0\n","  libswscale      5.  5.100 /  5.  5.100\n","  libswresample   3.  5.100 /  3.  5.100\n","  libpostproc    55.  5.100 / 55.  5.100\n","\u001b[1;31m/content/CodeFormer/results/images_0.7/high_definition.mp4: No such file or directory\n","\u001b[0m恭喜您高清数字人视频合并成功,\n"]}]},{"cell_type":"code","source":[],"metadata":{"id":"lEzxeMOnMJ_S"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":[],"metadata":{"id":"nN0LZW_rMKRA"},"execution_count":null,"outputs":[]}],"metadata":{"accelerator":"GPU","colab":{"provenance":[{"file_id":"https://github.com/langzizhixin/Wav2Lip-CodeFormer/blob/main/Wav2Lip-CodeFormer.ipynb","timestamp":1686452236797},{"file_id":"1IjFW1cLevs6Ouyu4Yht4mnR4yeuMqO7Y","timestamp":1682835098503},{"file_id":"1_EQJ5DPLfOPufsy26H5PCSVKr43A7KiC","timestamp":1620993149816},{"file_id":"1tZpDWXz49W6wDcTprANRGLo2D_EbD5J8","timestamp":1620984500069},{"file_id":"1NLUwupCBsB1HrpEmOIHeMgU63sus2LxP","timestamp":1597735440478}],"gpuType":"T4"},"kernelspec":{"display_name":"Python 3","name":"python3"},"gpuClass":"standard"},"nbformat":4,"nbformat_minor":0}